---
title: Write Operations
framework: pdfkit
role: collectionGroup
role_heading: API Collection
path: pdfkit/write-operations
---

# Write Operations

Operations that let you write document data to different locations.

## Topics

### Writing Out the PDF Data

- [write(toFile:)](pdfkit/pdfdocument/write(tofile:).md)
- [write(toFile:withOptions:)](pdfkit/pdfdocument/write(tofile:withoptions:).md)
- [write(to:)](pdfkit/pdfdocument/write(to:).md)
- [write(to:withOptions:)](pdfkit/pdfdocument/write(to:withoptions:).md)
- [Data Representations](pdfkit/data-representations.md)

### Printing Documents for macOS

- [printOperation(for:scalingMode:autoRotate:)](pdfkit/pdfdocument/printoperation(for:scalingmode:autorotate:).md)
- [PDFPrintScalingMode](pdfkit/pdfprintscalingmode.md)

## See Also

### Reading and Writing PDFs

- [Read Operations](pdfkit/read-operations.md)
