UIPrintPageRenderer
public extension UIPrintPageRenderer
-
The printable page rendered as a PDF.
Declaration
Swift
var PDF: Data { get }
-
Creates a
UIPrintPageRenderer
given the provided formatter, paper size, and insets.Note
The size for A4 paper isCGSize(width: 612, height: 792)
.Declaration
Swift
convenience init(formatter: UIViewPrintFormatter, paperSize: CGSize, insets: UIEdgeInsets)