Write Operations

Operations that let you write document data to different locations.

Topics

Writing Out the PDF Data

- writeToFile:

Writes the document to a file at the specified path.

- writeToFile:withOptions:

Writes the document to a file at the specified path with the specified options.

- writeToURL:

Writes the document to a location specified by the passed-in URL.

- writeToURL:withOptions:

Writes the document to the specified URL with the specified options.

Data Representations

Operations to represent PDF documents as data objects.

Printing Documents for macOS

- printOperationForPrintInfo:scalingMode:autoRotate:

Returns a print operation suitable for printing the PDF document.

PDFPrintScalingMode

The type of scaling to be used when printing a page (see PDFDocument).

See Also

Reading and Writing PDFs

Read Operations

Operations that let you access documents and pages, manage document security, and work with searching and selections.