---
title: printFormatter
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiprintinteractioncontroller/printformatter
---

# printFormatter

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

## Declaration

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

## Discussion

Discussion Assign to this property an instance of one of the concrete subclasses of UIPrintFormatter: UISimpleTextPrintFormatter, UIMarkupTextPrintFormatter, and UIViewPrintFormatter. This object is released at the end of the print job. If you set this property, UIPrintInteractionController sets the printingItems, printingItem, and printPageRenderer properties to nil. (Only one of these properties can be set for a print job.) If this property is set and the showsPageRange property is set to true—and if the formatter represents content of more than one page—the printing options include the control for selecting a page range.

## See Also

### Providing the source of printable content

- [printingItem](uikit/uiprintinteractioncontroller/printingitem.md)
- [printingItems](uikit/uiprintinteractioncontroller/printingitems.md)
- [printPageRenderer](uikit/uiprintinteractioncontroller/printpagerenderer.md)
