Function

CGPDFDocumentGetNumberOfPages

Returns the number of pages in a PDF document.

Declaration

size_t CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document);

Parameters

document

The PDF document to examine.

Return Value

The total number of pages in the PDF document.

See Also

Getting Information About Core Graphics PDF Documents

CGPDFDocumentGetCatalog

Returns the document catalog of a Core Graphics PDF document.

CGPDFDocumentGetPage

Returns a page from a Core Graphics PDF document.

CGPDFDocumentGetVersion

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

CGPDFDocumentGetInfo

Gets the information dictionary for a PDF document.

CGPDFDocumentGetID

Gets the file identifier for a PDF document.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software