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, and SANITIZE_OPEN_ACTION, 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 |