Skip to main content

detect_encryption

Function detect_encryption 

Source
pub fn detect_encryption(doc: &Document) -> EncryptionInfo
Expand description

Detect encryption info from a loaded PDF document.

Note: if the document couldn’t be loaded due to encryption, this function can’t inspect it. Use [detect_encryption_from_bytes] for raw file analysis.