THotPDF.UnlockLoadedEncryptedPayloadWrapper Method

Declaration

function UnlockLoadedEncryptedPayloadWrapper(
  const Password: AnsiString): boolean;

Behaviour

Decrypts a loaded encrypted-payload wrapper with the separate password that guards the embedded-file streams. Returns true when the document is no longer flagged as encrypted after decryption and false for an empty password, a document that is not a wrapper or a wrong password; decryption failures are reported through the return value rather than raised

See also IsLoadedEncryptedPayloadWrapper, Encrypted Payload Wrappers