Instance Method

getVersion(majorVersion:minorVersion:)

Returns the major and minor version numbers of a Core Graphics PDF document.

Declaration

func getVersion(majorVersion: UnsafeMutablePointer<Int32>, minorVersion: UnsafeMutablePointer<Int32>)

Parameters

majorVersion

On return, contains the major version number of the document.

minorVersion

On return, contains the minor version number of the document.

Return Value

On return, the values of the majorVersion and minorVersion parameters are set to the major and minor version numbers of the document respectively.

See Also

Examining a PDF Document

var catalog: CGPDFDictionaryRef?

Returns the document catalog of a Core Graphics PDF document.

var fileIdentifier: CGPDFArrayRef?

Gets the file identifier for a PDF document.

var info: CGPDFDictionaryRef?

Gets the information dictionary for a PDF document.

var numberOfPages: Int

Returns the number of pages in a PDF document.

func page(at: Int) -> CGPDFPage?

Returns a page from a Core Graphics PDF document.