Remove PDF encryption before consumption #1141
Replies: 5 comments 5 replies
-
This is something I have been wanting for a while, would you be able to share the script? |
Beta Was this translation helpful? Give feedback.
-
Is there any way to run the consume script on the 'password protected' existing pdfs in paperless-ngx? |
Beta Was this translation helpful? Give feedback.
-
+1 for this. Sometimes the password is important for the "transport" of the document, but in my private space it's OK to have it decrypted. There should be a way to either store the unencrypted file or to store the password (maybe encrypted for the user) and let the user decide whether to run OCR or not. |
Beta Was this translation helpful? Give feedback.
-
I've been trying out some document management tools, I just came from Docspell which allows you to define a list of potential passwords to try decrypting with. This might be a good first step into adding document decryption as it should catch the huge use case of pay documents that tend to have the same password Really looking for a simple way to handle password protected PDFs |
Beta Was this translation helpful? Give feedback.
-
Any chance something like this gets implemented? #1141 (comment) My workaround for now is to use |
Beta Was this translation helpful? Give feedback.
-
I receive payslips as encrypted PDFs and would like to automatically remove the password and import into Paperless. I am okay with the security implications of this.
I have written a pre-consumption script that does this and replaces the original encrypted PDF with a decrypted PDF, however this causes a second import and (harmless) error messages in the logs. It works but is messy and I think it should be considered as a core feature. Or is there is a trick for pre-consumption script to replace an incoming file without causing a second import?
The script works by identifying encrypted PDFs and then attempting to decrypt using a list of pre-saved passwords until one of them works.
Beta Was this translation helpful? Give feedback.
All reactions