<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/drawPageBorder(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(im)drawPageBorderWithSize:"
  },
  "title" : "drawPageBorder(with:)"
}
-->

# drawPageBorder(with:)

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

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

## Parameters

`borderSize`

An `NSSize` structure that defines a logical page.

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)