Function lopdf::encryption::decrypt_object
source · pub fn decrypt_object<Key>(
key: Key,
obj_id: ObjectId,
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.