Function

CGPDFDocumentGetVersion

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

Declaration

void CGPDFDocumentGetVersion(CGPDFDocumentRef document, int *majorVersion, int *minorVersion);

Parameters

document

A PDF document.

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

Getting Information About Core Graphics PDF Documents

CGPDFDocumentGetCatalog

Returns the document catalog of a Core Graphics PDF document.

CGPDFDocumentGetNumberOfPages

Returns the number of pages in a PDF document.

CGPDFDocumentGetPage

Returns a page from a Core Graphics PDF document.

CGPDFDocumentGetInfo

Gets the information dictionary for a PDF document.

CGPDFDocumentGetID

Gets the file identifier for a PDF document.