<!--
{
  "documentType" : "article",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/configurations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Configurations"
}
-->

# Configurations

Define display modes, scaling, rendering, printing and graphics properties.

## Topics

### Working with Display Modes and Characteristics

[`var displayMode: PDFDisplayMode`](/documentation/PDFKit/PDFView/displayMode)

The current display mode.

[`enum PDFDisplayMode`](/documentation/PDFKit/PDFDisplayMode)

A wrapper for the chosen display mode constant.

[Additional Display Configurations](/documentation/PDFKit/additional-display-configurations)

Operations for setting up page breaks, a display box, and display direction.

[Book Display](/documentation/PDFKit/book-display)

Operations to setup a book display for a PDF view.

[Graphics Properties](/documentation/PDFKit/graphics-properties)

Operations to define the background color, antialiasing, and greeking for a PDF view.

### Scaling the View

[`var scaleFactor: CGFloat`](/documentation/PDFKit/PDFView/scaleFactor)

The current scale factor for the view.

[`var scaleFactorForSizeToFit: CGFloat`](/documentation/PDFKit/PDFView/scaleFactorForSizeToFit)

The “size to fit” scale factor that `autoScales` would use for scaling the current document and layout.

[`var maxScaleFactor: CGFloat`](/documentation/PDFKit/PDFView/maxScaleFactor)

The maximum scaling factor for the PDF document.

[`var minScaleFactor: CGFloat`](/documentation/PDFKit/PDFView/minScaleFactor)

The minimum scaling factor for the PDF document.

[`var autoScales: Bool`](/documentation/PDFKit/PDFView/autoScales)

A Boolean value indicating whether autoscaling is set.

[`func rowSize(for: PDFPage) -> CGSize`](/documentation/PDFKit/PDFView/rowSize(for:))

Returns the size needed to display a row of the current document page.

[Zoom Operations](/documentation/PDFKit/zoom-operations)

Zoom operations for a PDF View.

### Rendering the View and Printing

[`func draw(PDFPage)`](/documentation/PDFKit/PDFView/draw(_:))

Draw and render a visible page.

[`func drawPagePost(PDFPage)`](/documentation/PDFKit/PDFView/drawPagePost(_:))

Perform post-page rendering.

[`func print(with: NSPrintInfo, autoRotate: Bool)`](/documentation/PDFKit/PDFView/print(with:autoRotate:))

Prints the document with the specified printer information.

[`func print(with: NSPrintInfo, autoRotate: Bool, pageScaling: PDFPrintScalingMode)`](/documentation/PDFKit/PDFView/print(with:autoRotate:pageScaling:))

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

### Specializing the View

[`var documentView: UIView?`](/documentation/PDFKit/PDFView/documentView)

The innermost view used by `PDFView` or by your `PDFView` subclass.

[`func layoutDocumentView()`](/documentation/PDFKit/PDFView/layoutDocumentView())

Performs layout of the inner views.

[Draw Operations](/documentation/PDFKit/draw-operations)

Draw in a PDF page.



---

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)