Skip to main content

open_pubsec

Function open_pubsec 

Source
pub fn open_pubsec(
    encrypt_dict: &PdfDictionary,
    credential: &PubSecCredential<'_>,
) -> PdfResult<StandardSecurityHandler>
Expand description

Authenticates against the /Encrypt dictionary of an Adobe.PubSec PDF and returns a configured decryption handler. Returns PdfError::InvalidPassword when no recipient blob unwraps with the supplied private key (matches the Standard handler’s “credential did not authenticate” error semantics).