THPDFSanitiseReport Record

Per-category removal counts, work limits and object graph health for a loaded-document sanitisation 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
ProfileSanitisation policy that was applied, running from spJavaScriptOnly to spRedactionCleanup
ActionsRemovedDocument, page and field actions that were deleted
JavaScriptEntriesRemovedJavaScript entries stripped out of the document's name tree
EmbeddedFilesRemovedEmbedded file attachments that were deleted
RiskyAnnotationsRemovedAnnotation types the profile classes as risky, such as Launch or Movie
XFAEntriesRemovedXFA entries dropped out of the Catalog
PayloadStreamsRemovedExecutable or untrusted payload streams that were removed
ReferencesRemovedDangling references left behind and pruned away by the pass
UnreachableObjectsRemovedOrphaned objects dropped out of the rewritten file
MetadataEntriesRemovedMetadata entries the profile goes after, such as document info or XMP pieces
RedactAnnotationsRemovedLeftover redaction annotations cleaned away so that marked content is not recoverable
PriorRevisionBytesDiscardedBytes of prior incremental revisions a full rewrite no longer carries
ObjectsVisitedObjects examined whilst the object graph was being rewritten
ChangedTrue where the document content was actually modified
LimitExceededTrue where a work budget stopped the pass before it could complete
InvalidObjectGraphTrue where the source object graph was too damaged for a safe rewrite

Usage notes

Related APIs