THPDFSanitiseReport Record

Per-category removal counts, work limits, and object graph health for a loaded-document sanitization run

Declaration

THPDFSanitiseReport= record
  Profile: THPDFSanitiseProfile;
  ActionsRemoved: Integer;
  JavaScriptEntriesRemoved: Integer;
  EmbeddedFilesRemoved: Integer;
  RiskyAnnotationsRemoved: Integer;
  XFAEntriesRemoved: Integer;
  PayloadStreamsRemoved: Integer;
  ReferencesRemoved: Integer;
  UnreachableObjectsRemoved: Integer;
  MetadataEntriesRemoved: Integer;
  RedactAnnotationsRemoved: Integer;
  PriorRevisionBytesDiscarded: Int64;
  ObjectsVisited: Integer;
  Changed: boolean;
  LimitExceeded: boolean;
  InvalidObjectGraph: boolean;
end;

Unit

HPDFDoc

Fields

FieldPurpose
ProfileSanitization policy that was applied, from spJavaScriptOnly to spRedactionCleanup
ActionsRemovedDocument, page, and field actions deleted
JavaScriptEntriesRemovedJavaScript entries stripped from the document's name tree
EmbeddedFilesRemovedEmbedded file attachments deleted
RiskyAnnotationsRemovedAnnotation types the profile classifies as risky, such as Launch or Movie
XFAEntriesRemovedXFA entries dropped from the Catalog
PayloadStreamsRemovedExecutable or untrusted payload streams removed
ReferencesRemovedDangling references left behind and pruned by the pass
UnreachableObjectsRemovedOrphaned objects dropped from the rewritten file
MetadataEntriesRemovedMetadata entries the profile targets, such as document info or XMP pieces
RedactAnnotationsRemovedLeftover redaction annotations cleaned up so marked content is not recoverable
PriorRevisionBytesDiscardedBytes of prior incremental revisions that a full rewrite no longer carries
ObjectsVisitedObjects examined while rewriting the object graph
ChangedTrue when the document content was actually modified
LimitExceededTrue when a work budget stopped the pass before completion
InvalidObjectGraphTrue when the source object graph was too damaged for a safe rewrite

Usage notes

Related APIs