---
title: "shouldChangePrintInfo(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdocument/shouldchangeprintinfo(_:)"
---

# shouldChangePrintInfo(_:)

Returns a Boolean value that indicates whether the document allows changes to the default printing information.

## Declaration

```swift
func shouldChangePrintInfo(_ newPrintInfo: NSPrintInfo) -> Bool
```

## Parameters

- `newPrintInfo`: The NSPrintInfo object that is the result of the user approving the page layout panel presented by doc://com.apple.appkit/documentation/AppKit/NSDocument/runPageLayout(_:).

## Return Value

Return Value true by default; subclasses can override this method to return false.

## Discussion

Discussion This method is invoked by the runPageLayout(_:) method, which sets a new NSPrintInfoobject for the document only if this method returns true.

## See Also

### Printing the Document

- [printInfo](appkit/nsdocument/printinfo.md)
- [preparePageLayout(_:)](appkit/nsdocument/preparepagelayout(_:).md)
- [runModalPageLayout(with:delegate:didRun:contextInfo:)](appkit/nsdocument/runmodalpagelayout(with:delegate:didrun:contextinfo:).md)
- [runModalPrintOperation(_:delegate:didRun:contextInfo:)](appkit/nsdocument/runmodalprintoperation(_:delegate:didrun:contextinfo:).md)
- [print(withSettings:showPrintPanel:delegate:didPrint:contextInfo:)](appkit/nsdocument/print(withsettings:showprintpanel:delegate:didprint:contextinfo:).md)
- [printOperation(withSettings:)](appkit/nsdocument/printoperation(withsettings:).md)
- [pdfPrintOperation](appkit/nsdocument/pdfprintoperation.md)
- [saveToPDF(_:)](appkit/nsdocument/savetopdf(_:).md)
