---
title: "drawPageBorder(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsview/drawpageborder(with:)"
---

# drawPageBorder(with:)

Allows applications that use the AppKit pagination facility to draw additional marks on each logical page.

## Declaration

```swift
func drawPageBorder(with borderSize: NSSize)
```

## Parameters

- `borderSize`: An NSSize structure that defines a logical page.

## Discussion

Discussion The marks can be such things as alignment marks or a virtual sheet border of size borderSize. The default implementation doesn’t draw anything.

## See Also

### Printing the View’s Content

- [printView(_:)](appkit/nsview/printview(_:).md)
- [beginPage(in:atPlacement:)](appkit/nsview/beginpage(in:atplacement:).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)
- [drawSheetBorder(with:)](appkit/nsview/drawsheetborder(with:).md)
