Returns the PDF security handler revision used by the document:
Arguments
- doc
A
pdfium_docfrompdf_doc_open(), or a character path.
Details
NA— unencrypted (PDFium reports-1, mapped toNAhere).2— original 40-bit RC4 (PDF 1.1).3— 128-bit RC4 (PDF 1.4).4— AES (PDF 1.6).5— AES-256, Adobe Extension Level 3 (PDF 1.7).6— AES-256 (PDF 2.0).
Wraps FPDF_GetSecurityHandlerRevision. Useful when classifying
PDFs as "encrypted vs not" and when reporting the encryption
strength to downstream tools — combine with pdf_doc_permissions()
to know whether a viewer would let a user print/copy/edit.