<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/pdfPrintOperation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDocument(py)PDFPrintOperation"
  },
  "title" : "pdfPrintOperation"
}
-->

# pdfPrintOperation

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

```
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:)`](/documentation/AppKit/NSDocument/printOperation(withSettings:)) method and  passing a print settings object that contains only the disposition ([`save`](/documentation/AppKit/NSPrintInfo/JobDisposition-swift.struct/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.

> Important:
> This property does not copy the document’s ``doc://com.apple.appkit/documentation/AppKit/NSDocument/printInfo`` to the PDF printing operation object. Your app should maintain a separate ``doc://com.apple.appkit/documentation/AppKit/NSPrintInfo`` instance specifically for creating PDFs and assign it to the ``doc://com.apple.appkit/documentation/AppKit/NSPrintOperation/printInfo`` property of the operation object.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)