---
title: "print(with:autoRotate:pageScaling:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/print(with:autorotate:pagescaling:)"
---

# print(with:autoRotate:pageScaling:)

Prints the document with the specified printer and page-scaling information.

## Declaration

```swift
func print(with printInfo: NSPrintInfo, autoRotate doRotate: Bool, pageScaling scale: PDFPrintScalingMode)
```

## Discussion

Discussion If pageScaling is set to kPDFPrintPageScaleToFit, each page is scaled up or down to best fit the paper size. If pageScaling is set to kPDFPrintPageScaleDownToFit, only large pages are scaled down to fit; small pages are not scaled up to fit. Specifying kPDFPrintPageScaleNone for pageScaling is equivalent to calling print(with:autoRotate:). See PDFDocument for more information on page-scaling types.

## See Also

### Rendering the View and Printing

- [draw(_:)](pdfkit/pdfview/draw(_:).md)
- [drawPagePost(_:)](pdfkit/pdfview/drawpagepost(_:).md)
- [print(with:autoRotate:)](pdfkit/pdfview/print(with:autorotate:).md)
