function AuditActiveContent: TPdfActiveContentAudit;
| Result | TPdfActiveContentAudit. Record with JavaScriptActionCount, AttachmentCount, SignatureCount, FormType, HasXfa, HasEmbeddedFiles, HasJavaScript, and Permissions |
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 that 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