PDFPage

public final class PDFPage

A class that is used to manipulate an individual page.

  • The default width of a page when you don’t specify its size.

    Declaration

    Swift

    public static let defaultWidth: Float
  • The default height of a page when you don’t specify its size.

    Declaration

    Swift

    public static let defaultHeight: Float
  • The minimum allowed page height.

    Declaration

    Swift

    public static let minHeight: Float
  • The maximum allowed page height.

    Declaration

    Swift

    public static let maxHeight: Float
  • The minimum allowed page width.

    Declaration

    Swift

    public static let minWidth: Float
  • The maximum allowed page width.

    Declaration

    Swift

    public static let maxWidth: Float
  • Undocumented

    Declaration

    Swift

    public private(set) weak var document: PDFDocument?
  • The width of the page. The valid values are between PDFPage.minWidth and PDFPage.maxWidth.

    Declaration

    Swift

    public var width: Float { get set }
  • The height of the page. The valid values are between PDFPage.minHeight and PDFPage.maxHeight.

    Declaration

    Swift

    public var height: Float { get set }
  • Changes the size and direction of a page to a predefined size.

    Declaration

    Swift

    public func set(size: PDFPage.Size, direction: PDFPage.Direction)

    Parameters

    size

    A predefined page-size value.

    direction

    The direction of the page.

  • Sets rotation angle of the page.

    Declaration

    Swift

    public func rotate(byAngle angle: Int)

    Parameters

    angle

    The rotation angle of the page. It must be a multiple of 90 degrees. It can also be negative.

  • Orientation of a page.

    See more

    Declaration

    Swift

    public enum Direction : UInt32
  • A predefined size for a page.

    See more

    Declaration

    Swift

    public enum Size : UInt32