Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Decrypt an encrypted PDF file using QPDF

📅 2012-Nov-25 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ decryption, encryption, password, pdf ⬩ 📚 Archive

PDF files from certain sources might be secured or DRM protected or encrypted. This might prevent you from adding annotations, editing, printing or even viewing the file. Essentially the file is read-only for you, locking you out of making changes to it.

A PDF file which is encrypted can be decrypted using QPDF:

$ qpdf --decrypt in.pdf out.pdf

To remove the password protection of a PDF:

$ qpdf --decrypt --password=soopersecret in.pdf out.pdf

Tried with: QPDF 8.0.2


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧