Function

CGPDFDocumentGetID

Gets the file identifier for a PDF document.

Declaration

CGPDFArrayRef CGPDFDocumentGetID(CGPDFDocumentRef document);

Parameters

document

The document whose file identifier you want to obtain.

Return Value

Returns the file identifier for the document.

Discussion

A PDF file identifier is defined in the PDF specification as an array of two strings, the first of which is a permanent identifier that doesn’t change even when the file is updated. The second string changes each time the file is updated. For more information, see PDF Reference: Version 1.3 (Second Edition), Adobe Systems Incorporated.

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.

CGPDFDocumentGetVersion

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

CGPDFDocumentGetInfo

Gets the information dictionary for a PDF document.