I’ve currently run into the need to find which pdfs within a directory are “Secured Documents”.
All of the pdfs should be unsecured, and convertible via xpdf, however, this is not the case. How could I scan through all the pdfs in a directory to find out whether or not they are secured?
I’ve currently run into the need to find which pdfs within a directory are
Share
pypdf supports decrypting PDFs. Its PdfReader class has an is_encrypted attribute.