GetDocumentIdentifier

Document properties

Description

Returns the document identifier. This identifier consists of two parts, each strings. The first string does not change when the document is resaved with an "incremental update" in Acrobat. This can be seen as the permanent identifier for the document. The second part will change each time the document is resaved, even if the resave is an incremental update

Syntax

Delphi

Function TPDFlib.GetDocumentIdentifier(Part, Options: Integer): WideString;

ActiveX

Function PDFlib::GetDocumentIdentifier(Part As Long, Options As Long) As String

DLL

const wchar_t* DLGetDocumentIdentifier(int InstanceID, int Part, int Options);
const char* DLGetDocumentIdentifierA(int InstanceID, int Part, int Options);

Parameters

Part0 = Permanent identifier 1 = Changeable identifier
Options0 = Return the identifier as a string of characters 1 = Return the identifier as a hexadecimal string

Return values

Returns one part of the document /ID: Part 0 or 1 selects the entry, and Options 1 returns it as hexadecimal text while 0 returns the raw value. Returns an empty string when the document has no /ID