<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/runModalPageLayoutWithPrintInfo:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDocument(im)runModalPageLayoutWithPrintInfo:"
  },
  "title" : "runModalPageLayoutWithPrintInfo:"
}
-->

# runModalPageLayoutWithPrintInfo:

Runs the page layout modal panel with the receiver’s printing information object.

```
- (NSInteger) runModalPageLayoutWithPrintInfo:(NSPrintInfo *) printInfo;
```

## Discussion

Runs the page layout modal panel with the receiver’s printing information object (`printInfo`) as argument and returns the result constant (indicating the button pressed by the user). To run as sheet on the receiver’s document window, use [`runModalPageLayout(with:delegate:didRun:contextInfo:)`](/documentation/AppKit/NSDocument/runModalPageLayout(with:delegate:didRun:contextInfo:)) instead.

---

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)