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.