Эта запись API сохраняет идентификаторы, сигнатуры, блоки кода и термины PDF в исходном виде.
Component: TPdf · Unit: PDFium
Read-only flag — returns the document file identifier array for the requested identifier slot.
Syntax
property FileIdentifier: TBytes;
Description
Returns returns the document file identifier array 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
- Treat the value as immutable for the lifetime of the open document — reopening the file or changing pages may yield a different result.
- Surface this value in your UI to drive feature toggles (for example, disable accessibility export when
IsTagged is False).
- All scalar boolean / type properties on TPdf are inexpensive O(1) reads.
Example
if Pdf1.Active and Pdf1.FileIdentifier then
Memo1.Lines.Add('FileIdentifier = True')
else
Memo1.Lines.Add('FileIdentifier = False');
See Also