SanitizeDocument
Security and signatures, document management
Description
Strips selected sensitive content from the current PDF in one call. Combine SANITIZE_JAVASCRIPT, SANITIZE_ACTIONS, SANITIZE_METADATA, SANITIZE_ANNOTATIONS, SANITIZE_OPEN_ACTION, and SANITIZE_XMP_PACKET (which removes the whole XMP metadata stream and /PieceInfo dictionaries), or pass SANITIZE_ALL to apply every available strip
Syntax
Delphi
Function TPDFlib.SanitizeDocument(Flags: Integer): Integer;
Parameters
| Flags | Bitmask selecting which sensitive content classes to strip |
|---|
Return values
| 0 | No document is loaded or sanitizing failed |
|---|---|
| 1 | The selected sanitizing operations completed |