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

FlagsBitmask selecting which sensitive content classes to strip

Return values

0No document is loaded or sanitizing failed
1The selected sanitizing operations completed