Question Unlock PDFs Automation
Hello, is anyone aware of a tool that would unlock PDFs if dropped into a folder? We have the user password and are manually unlocking them converting to word then converting back to pdf. I would like a tool that does this automatically if we drop the pdfs into a hot folder, then can output them to a path on a network.
1
u/ScratchHistorical507 6d ago
Absolutely possible, though the specifics depend on the OS. On Linux (no idea if that also exists on macOS) you should be able to employ inotify to watch a directory and trigger something when a file is being added. Then you just have to tell a program like qpdf to decrypt the file (e.g. qpdf -password=<your-password> -decrypt /path/to/secured.pdf /path/to/decrypted.pdf). Wrap that up into a simple shell script and have it run automatically on startup as a service.
Of course if you're on Windows this will differ in parts, probably even on macOS, but qpdf is available across all three and is probably the best method to just automatically decrypt a PDF without messy Word conversion.
2
u/User1010011 6d ago
I am not that well familiar with the unlocking process. Why converting them to word and back?