How To Remove Passwords From PDF Documents Using Linux Bash

And, prompt for password.

If you supply the password in the command line, it gets stored in bash history. So, we need to make the command prompt for password.

pdftk pathname_of_encrypted_pdf_doc.pdf output pathname_of_decrypted_pdf_doc.pdf do_ask

To install pdftk using the command (in Ubuntu/Mint):

sudo apt-get install pdftk
This entry was posted in software and tagged , , . Bookmark the permalink.

Make a comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s