Instance Property


The printing information associated with the document.


@NSCopying var printInfo: NSPrintInfo { get set }

Return Value

The receiver’s NSPrintInfo object.


The default value of this property is the default NSPrintInfo object. To customize the printing information, assign a new value to this property. The Page Layout panel may also update the object in this property to reflect the options selected by the user.

See Also

Printing Documents

func preparePageLayout(NSPageLayout) -> Bool

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

func runModalPageLayout(with: NSPrintInfo, delegate: Any?, didRun: Selector?, contextInfo: UnsafeMutableRawPointer?)

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

func shouldChangePrintInfo(NSPrintInfo) -> Bool

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

var pdfPrintOperation: NSPrintOperation

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

func saveToPDF(Any?)

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