addPrintFormatter(_:startingAtPageAt:)
Adds a print formatter to the page renderer starting at the specified page.
Declaration
func addPrintFormatter(_ formatter: UIPrintFormatter, startingAtPageAt pageIndex: Int)Parameters
- formatter:
The Uiprintformatter object to add to the page renderer. A print formatter can be an instance of Uisimpletextprintformatter, Uimarkuptextprintformatter, or Uiviewprintformatter.
- pageIndex:
The index identifying the first page with which the print formatter should be associated with. This value overrides the Startpage property of the print formatter.
Discussion
You can dissociate a print formatter from its page renderer by calling the removeFromPrintPageRenderer() method on the print formatter.