<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPrintOperation/pageRange",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPrintOperation(py)pageRange"
  },
  "title" : "pageRange"
}
-->

# pageRange

The range of pages associated with the print operation.

```
var pageRange: NSRange { get }
```

## Return Value

The range of page numbers. Page numbers are one-based values where the index of page one is 1, the index of page two is 2, and so on. Depending on the information returned by the printing view, the starting page number may not be 1.  Also, if the number of pages being printed is not known, the page count may be set to `NSIntegerMax`.

## See Also

[`knowsPageRange(_:)`](/documentation/AppKit/NSView/knowsPageRange(_:))

Returns a Boolean value that indicates whether the view handles page boundaries.



---

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)