---
title: "beginPage(in:atPlacement:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsview/beginpage(in:atplacement:)"
---

# beginPage(in:atPlacement:)

Called at the beginning of each page, this method sets up the coordinate system so that a region inside the view’s bounds is translated to a specified location.

## Declaration

```swift
func beginPage(in rect: NSRect, atPlacement location: NSPoint)
```

## Parameters

- `rect`: A rectangle defining the region to be translated.
- `location`: A point that is the end-point of translation.

## Discussion

Discussion If you override this method, be sure to call the superclass implementation.

## See Also

### Printing the View’s Content

- [printView(_:)](appkit/nsview/printview(_:).md)
- [dataWithEPS(inside:)](appkit/nsview/datawitheps(inside:).md)
- [dataWithPDF(inside:)](appkit/nsview/datawithpdf(inside:).md)
- [printJobTitle](appkit/nsview/printjobtitle.md)
- [pageHeader](appkit/nsview/pageheader.md)
- [pageFooter](appkit/nsview/pagefooter.md)
- [writeEPS(inside:to:)](appkit/nsview/writeeps(inside:to:).md)
- [writePDF(inside:to:)](appkit/nsview/writepdf(inside:to:).md)
- [drawPageBorder(with:)](appkit/nsview/drawpageborder(with:).md)
- [drawSheetBorder(with:)](appkit/nsview/drawsheetborder(with:).md)
