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.minWidthandPDFPage.maxWidth.Declaration
Swift
public var width: Float { get set } -
The height of the page. The valid values are between
PDFPage.minHeightandPDFPage.maxHeight.Declaration
Swift
public var height: Float { get set } -
Sets rotation angle of the page.
Declaration
Swift
public func rotate(byAngle angle: Int)Parameters
angleThe rotation angle of the page. It must be a multiple of 90 degrees. It can also be negative.
View on GitHub
PDFPage Class Reference