pdf_extract::encryption

Function decrypt_object

Source
pub fn decrypt_object<Key>(
    key: Key,
    obj_id: (u32, u16),
    obj: &Object,
) -> Result<Vec<u8>, DecryptionError>
where Key: AsRef<[u8]>,
Expand description

Decrypts obj and returns the content of the string or stream. If obj is not an decryptable type, returns the NotDecryptable error.