UIPrintPageRenderer

public extension UIPrintPageRenderer
  • PDF

    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 is CGSize(width: 612, height: 792).

    Declaration

    Swift

    convenience init(formatter: UIViewPrintFormatter, paperSize: CGSize, insets: UIEdgeInsets)