THotPDF.SanitiseLoadedDocument Method
Removes selected active or externally supplied content from a loaded PDF and prepares a compact full rewrite
Declaration
function SanitiseLoadedDocument(Profile: THPDFSanitiseProfile;
out Report: THPDFSanitiseReport): Boolean; overload;
function SanitiseLoadedDocument(
out Report: THPDFSanitiseReport): Boolean; overload;
Parameters
| Name | Purpose |
|---|---|
Profile | Selects JavaScript-only, active-content, strict untrusted-document, rich-media-only, or redaction-cleanup removal |
Report | Receives removal counts, metadata and prior-revision cleanup telemetry, visited-object count, change state, and failure diagnostics |
Return value
Returns True after a complete preflight and rewrite preparation, or False when no document is loaded, the root catalog is unavailable, the node budget is exceeded, or duplicate indirect object identities make the graph invalid