printInteractionController(_:cutLengthFor:)
Asks the delegate for a length to use when cutting the page.
Declaration
optional func printInteractionController(_ printInteractionController: UIPrintInteractionController, cutLengthFor paper: UIPrintPaper) -> CGFloatParameters
- printInteractionController:
The shared instance of Uiprintinteractioncontroller that is managing the print job.
- paper:
A Uiprintpaper that specifies the maximum physical and printable areas of the page.
Return Value
The physical length of the page in points.
Discussion
Some printers can cut a roll of print paper at a particular length. If you implement this method in your delegate, then it may be called during a print job. Your delegate should determine the length in which the content fits and return this value. When printed, the paper will be cut to this length.