Contents

pdfPrintOperation

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

Declaration

var pdfPrintOperation: NSPrintOperation { get }

Discussion

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 printOperation(withSettings:) method and passing a print settings object that contains only the disposition (save) 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