PDFium Delphi Component Docs

AuditActiveContent method

Component: TPdf  ·  Unit: PDFium
Report the active content of the document: scripts, embedded files, forms, XFA, and signatures

Syntax

function AuditActiveContent: TPdfActiveContentAudit;

ResultTPdfActiveContentAudit. Record with JavaScriptActionCount, AttachmentCount, SignatureCount, FormType, HasXfa, HasEmbeddedFiles, HasJavaScript, and Permissions

Description

Collects the parts of a PDF that do something rather than just display: document-level JavaScript, embedded files, an XFA form layer, AcroForm fields, and signatures. That is the set an intake gate or a mail filter needs to decide whether a file may pass

The report says what is present, not whether it is malicious. Reading the scripts themselves goes through JavaScriptActions, and attachments through Attachment

For the full document census rather than the active-content subset, use GetFeatureInventory

See Also

GetFeatureInventory, JavaScriptActions, AttachmentCount, XFA