Instance Property


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


@property(readonly, strong) NSPrintOperation *PDFPrintOperation;


The object in this property can be run to print the document’s current contents to a PDF file.

The default print operation stored by this property is obtained by calling the printOperationWithSettings:error: method and passing a print settings object that contains only the disposition (NSPrintSaveJob) and a NULL error object reference. If your document subclass supports creating PDF representations, you can override this property as needed to customize the options.

See Also

Printing the Document


The printing information associated with the document.

- preparePageLayout:

Adds document-specific content to the Page Layout panel.

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

- saveDocumentToPDF:

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