printFormattersForPage(at:)
Returns the print formatters for a specified page.
Declaration
func printFormattersForPage(at pageIndex: Int) -> [UIPrintFormatter]?Parameters
- pageIndex:
The index of a page of printable content.
Return Value
An array of UIPrintFormatter objects. A print formatter can be an instance of UISimpleTextPrintFormatter, UIMarkupTextPrintFormatter, or UIViewPrintFormatter.
Discussion
A print formatter is associated with a starting page of printable content through the addPrintFormatter(_:startingAtPageAt:) method or the startPage property of UIPrintFormatter. The number of pages from that page is determined by the pageCount property, which UIPrintFormatter computes based on layout metrics and content.