<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPrintInteractionController/printFormatter",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPrintInteractionController(py)printFormatter"
  },
  "title" : "printFormatter"
}
-->

# printFormatter

An object that lays out the content of pages according to the kind of content.

```
var printFormatter: UIPrintFormatter? { get set }
```

## Discussion

Assign to this property an instance of one of the concrete subclasses of [`UIPrintFormatter`](/documentation/UIKit/UIPrintFormatter): [`UISimpleTextPrintFormatter`](/documentation/UIKit/UISimpleTextPrintFormatter), [`UIMarkupTextPrintFormatter`](/documentation/UIKit/UIMarkupTextPrintFormatter), and [`UIViewPrintFormatter`](/documentation/UIKit/UIViewPrintFormatter). This object is released at the end of the print job.

If you set this property, `UIPrintInteractionController` sets the [`printingItems`](/documentation/UIKit/UIPrintInteractionController/printingItems), [`printingItem`](/documentation/UIKit/UIPrintInteractionController/printingItem), and [`printPageRenderer`](/documentation/UIKit/UIPrintInteractionController/printPageRenderer) properties to `nil`. (Only one of these properties can be set for a print job.)

If this property is set and the [`showsPageRange`](/documentation/UIKit/UIPrintInteractionController/showsPageRange) property is set to <doc://com.apple.documentation/documentation/Swift/true>—and if the formatter represents content of more than one page—the printing options include the control for selecting a page range.

---

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)