isEncrypted property #1328
Unanswered
semproms-64
asked this question in
Q&A
Replies: 2 comments
-
I have a similar question, to be able to decrypt PDFs, especially those with default password. Can someone help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
#1015 (comment) - some related discussion |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
As far as I know, PDF-lib can't work with encrypted documents. But I need to work with PDF'S which have the default password (you can open it, but PDF-Lib says they are encrypted and cannot be loaded). This kind of documents can be decrypted with npm libraries such as qpdf. So I'd like to ask if is it possible to detect if a document is encrypted easily so I can use qpdf to decrypt. I always can do something like this:
But I think this is not the best way to do it. Thank you very much for your help.
Beta Was this translation helpful? Give feedback.
All reactions