Asks the delegate for a length to use when cutting the page.
SDKs
- iOS 7.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
optional func printInteractionController(_ printInteractionController: UIPrint Interaction Controller, cutLengthFor paper: UIPrint Paper) -> CGFloat
Parameters
printInteractionController
The shared instance of
UIPrint
that is managing the print job.Interaction Controller paper
A
UIPrint
that specifies the maximum physical and printable areas of the page.Paper
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.