PDFium Delphi Component Docs

FileIdentifier property

Component: TPdf  ·  Unit: PDFium
Read-only flag — returns the document file identifier array for the requested identifier slot

Syntax

property FileIdentifier[IDType: TPdfFileIdentifierType]: TBytes; // read only

Description

Returns the document file identifier bytes for the requested identifier slot

PDF 1.7 ยง 14.4 mandates a two-element /ID array in the trailer: first ID = creation, second ID = last modification

Pass fidPermanent (original) or fidChanging (current); returns nil bytes when /ID is absent

Remarks

Example

if Pdf1.Active then
  Memo1.Lines.Add('Permanent ID bytes = ' + IntToStr(Length(Pdf1.FileIdentifier[fidPermanent])));

See Also

PdfVersion, ModifiedDate, SaveAs