Instance Method


Returns a Boolean value indicating whether the receiver should allow changes to the default NSPrintInfo object used in printing the document.


- (BOOL)shouldChangePrintInfo:(NSPrintInfo *)newPrintInfo;



The NSPrintInfo object that is the result of the user approving the page layout panel presented by runPageLayout:.

Return Value

YES by default; subclasses can override this method to return NO.


This method is invoked by the runPageLayout: method, which sets a new NSPrintInfoobject for the document only if this method returns YES.

See Also

Printing Documents


The printing information associated with the document.

- preparePageLayout:

Invoked by runModalPageLayoutWithPrintInfo: and runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo: to do any customization of the Page Layout panel pageLayout, such as adding an accessory view.

- runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo:

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

- runModalPrintOperation:delegate:didRunSelector:contextInfo:

Runs the specified print operation modally.

- printOperationWithSettings:error:

Creates a print operation and returns it if successful.


A print operation that you can use to create a PDF representation of the document’s current contents.

- saveDocumentToPDF:

Exports a PDF representation of the document’s current contents.