<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPrintPageRenderer/addPrintFormatter(_:startingAtPageAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPrintPageRenderer(im)addPrintFormatter:startingAtPageAtIndex:"
  },
  "title" : "addPrintFormatter(_:startingAtPageAt:)"
}
-->

# addPrintFormatter(_:startingAtPageAt:)

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

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

## Parameters

`formatter`

The [`UIPrintFormatter`](/documentation/UIKit/UIPrintFormatter) object to add to the page renderer. A print formatter can be an instance of [`UISimpleTextPrintFormatter`](/documentation/UIKit/UISimpleTextPrintFormatter), [`UIMarkupTextPrintFormatter`](/documentation/UIKit/UIMarkupTextPrintFormatter), or [`UIViewPrintFormatter`](/documentation/UIKit/UIViewPrintFormatter).

`pageIndex`

The index identifying the first page with which the print formatter should be associated with. This value overrides the [`startPage`](/documentation/UIKit/UIPrintFormatter/startPage) property of the print formatter.

## Discussion

You can dissociate a print formatter from its page renderer by calling the [`removeFromPrintPageRenderer()`](/documentation/UIKit/UIPrintFormatter/removeFromPrintPageRenderer()) method on the print formatter.

---

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)