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

# pmPageFormat()

Returns a Core Printing object configured with the print info’s page format information.

```
func pmPageFormat() -> UnsafeMutableRawPointer
```

## Return Value

A pointer to a <doc://com.apple.documentation/documentation/applicationservices/pmpageformat> object, an opaque data type that stores information such as the paper size, orientation, and scale of pages in a printing session. You should not call `PMRelease` to release the returned object, except to balance calls to `PMRetain` that your code also issued.

## Discussion

The information in the returned `PMPageFormat` object is consistent with the receiver’s page format information at the time this method is called. Subsequent changes to the receiving `NSPrintInfo` object do not result in changes to the information in the `PMPageFormat` object.

If you make changes to the data in the `PMPageFormat` object, you should invoke the [`updateFromPMPageFormat()`](/documentation/AppKit/NSPrintInfo/updateFromPMPageFormat()) method to synchronize those changes with the `NSPrintInfo` object that created the object.

---

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)