Instance Method


Adds document-specific content to the Page Layout panel.


- (BOOL)preparePageLayout:(NSPageLayout *)pageLayout;



The page layout panel to prepare.

Return Value

YES if successfully prepared; otherwise, NO.


The runModalPageLayoutWithPrintInfo: and runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo: methods call this method to allow the document to customize the Page Layout panel pageLayout. You might use this method to add a document-related accessory view.

The default implementation returns YES.

See Also

Printing the Document


The printing information associated with the document.

- 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.

- shouldChangePrintInfo:

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

- printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:

Prints the document's contents, optionally displaying a print panel to the user.

- printOperationWithSettings:error:

Creates and returns a print operation for the document's contents.


A print operation 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.