---
title: endPage()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsview/endpage()
---

# endPage()

Writes the end of a conforming page.

## Declaration

```swift
func endPage()
```

## Discussion

Discussion This method is invoked after each page is printed. It invokes unlockFocus(). This method also generates comments for the bounding box and page fonts, if they were specified as being at the end of the page.

## See Also

### Writing Conforming Rendering Instructions

- [beginDocument()](appkit/nsview/begindocument().md)
- [endDocument()](appkit/nsview/enddocument().md)
