PDFium Delphi Component Docs

Método GetFeatureInventory

Componente: TPdf  ·  Unidade: PDFium
Conta o que todo o documento contém: objetos por tipo, anexos, assinaturas, marcadores, tipo de formulário, permissões e versão

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