CGPDFPage

A page in a PDF document.

Overview

The CGPDFPageRef opaque type represents a page in a PDF document.

Topics

Getting the CFType ID

class var typeID: CFTypeID

Returns the CFType ID for PDF page objects.

Getting Page Information

func getBoxRect(CGPDFBox)

Returns the rectangle that represents a type of box for a content region or page dimensions of a PDF page.

var dictionary: CGPDFDictionaryRef?

Returns the dictionary of a PDF page.

var document: CGPDFDocument?

Returns the document for a page.

func getDrawingTransform(CGPDFBox, rect: CGRect, rotate: Int32, preserveAspectRatio: Bool)

Returns the affine transform that maps a box to a given rectangle on a PDF page.

var pageNumber: Int

Returns the page number of the specified PDF page.

var rotationAngle: Int32

Returns the rotation angle of a PDF page.

Data Types

class CGPDFPage

A type that represents a page in a PDF document.

Constants

enum CGPDFBox

Box types for a PDF page.

See Also

Abstract Types for PDF Document Content

CGPDFArray

An array structure within a PDF document.

CGPDFObject

An object representing content within a PDF document.

CGPDFStream

A stream or sequence of data bytes in a PDF document.

CGPDFString

A text string in a PDF document.

CGPDFScanner

A parser object for handling content and operators in a PDF content stream.

CGPDFDictionary

A dictionary structure within a PDF document.

CGPDFContentStream

A representation of one or more content data streams in a PDF page.

CGPDFOperatorTable

A set of callback functions for operators used when scanning content in a PDF document.