NSPrintOperation
An object that controls operations that generate Encapsulated PostScript (EPS) code, Portable Document Format (PDF) code, or print jobs.
Declaration
@MainActor class NSPrintOperationOverview
An NSPrintOperation object works in conjunction with two other objects: an NSPrintInfo object, which specifies how the code should be generated, and an NSView object, which generates the actual code.
It is important to note that the majority of methods in NSPrintOperation copy the instance of NSPrintInfo passed into them. Future changes to that print info are not reflected in the print info retained by the current NSPrintOperation object. All changes should be made to the print info before passing to the methods of this class. The only method in NSPrintOperation which does not copy the NSPrintInfo instance is printInfo.
Topics
Creating the Printing Operation Object
epsOperation(with:inside:to:)epsOperation(with:inside:to:printInfo:)epsOperation(with:inside:toPath:printInfo:)pdfOperation(with:inside:to:)pdfOperation(with:inside:to:printInfo:)pdfOperation(with:inside:toPath:printInfo:)init(view:)init(view:printInfo:)