PDFium Delphi Component Docs

GetFeatureInventory method

Component: TPdf  ·  Unit: PDFium
Count what the whole document contains: objects by kind, attachments, signatures, bookmarks, form type, permissions, and version

Syntax

function GetFeatureInventory: TPdfFeatureInventory;

ResultTPdfFeatureInventory. Record with PageCount, TextObjectCount, PathObjectCount, ImageObjectCount, FormXObjectCount, ShadingObjectCount, AttachmentCount, SignatureCount, BookmarkCount, FormType, Permissions, and PDFVersion

Description

A document-wide census, where PageComplexity covers one page. It answers the intake questions a processing pipeline asks before deciding what to do with a file: how big, what kind of content, forms or not, signed or not, which PDF version

The walk visits every page, so the cost grows with the document. Call it once and keep the record rather than re-reading fields from it in a loop

For the security-relevant subset - scripts, embedded files, XFA - AuditActiveContent is the narrower report

See Also

AuditActiveContent, PageComplexity, PdfVersion, FormType