pub fn detect_encryption(doc: &Document) -> EncryptionInfoExpand 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.