pub fn decrypt_document(
doc: &mut Document,
password: Option<&str>,
) -> Result<(), EdgePdfError>Expand description
Decrypt an already-parsed document in place when encrypted.
No-op when the document is not encrypted. When encrypted and password is
None, attempts an empty-user-password decrypt (common for owner-only locks).