---
title: "addPrintFormatter(_:startingAtPageAt:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiprintpagerenderer/addprintformatter(_:startingatpageat:)"
---

# addPrintFormatter(_:startingAtPageAt:)

Adds a print formatter to the page renderer starting at the specified page.

## Declaration

```swift
func addPrintFormatter(_ formatter: UIPrintFormatter, startingAtPageAt pageIndex: Int)
```

## Parameters

- `formatter`: The doc://com.apple.uikit/documentation/UIKit/UIPrintFormatter object to add to the page renderer. A print formatter can be an instance of doc://com.apple.uikit/documentation/UIKit/UISimpleTextPrintFormatter, doc://com.apple.uikit/documentation/UIKit/UIMarkupTextPrintFormatter, or doc://com.apple.uikit/documentation/UIKit/UIViewPrintFormatter.
- `pageIndex`: The index identifying the first page with which the print formatter should be associated with. This value overrides the doc://com.apple.uikit/documentation/UIKit/UIPrintFormatter/startPage property of the print formatter.

## Discussion

Discussion You can dissociate a print formatter from its page renderer by calling the removeFromPrintPageRenderer() method on the print formatter.

## See Also

### Managing print formatters

- [printFormattersForPage(at:)](uikit/uiprintpagerenderer/printformattersforpage(at:).md)
- [printFormatters](uikit/uiprintpagerenderer/printformatters.md)
