Encrypted Payload Wrappers

ConfigureEncryptedPayloadWrapper creates a PDF 2.0 password-security document whose ordinary page streams remain readable before authentication while embedded-file names, descriptions, and bytes remain encrypted

Delphi syntax

procedure ConfigureEncryptedPayloadWrapper(const OwnerPassword,
  UserPassword: AnsiString; KeyType: THPDFKeyType = aes256);
function IsLoadedEncryptedPayloadWrapper: Boolean;
function UnlockLoadedEncryptedPayloadWrapper(
  const Password: AnsiString): Boolean;

Crypt-filter policy

Loading and unlocking

Load the document normally, inspect the wrapper with IsLoadedEncryptedPayloadWrapper, then call UnlockLoadedEncryptedPayloadWrapper with the payload password before resolving or extracting the protected attachment

A failed unlock returns false and preserves the prior loaded state without partially rewriting encrypted metadata

Limits

Available since: HotPDF v2.715.0

See also: PDF Filter Support