DEV Community

Cover image for One-liner to Unlock Password-Protected PDFs
Kenta Takeuchi
Kenta Takeuchi

Posted on • Originally published at bmf-tech.com

One-liner to Unlock Password-Protected PDFs

This article was originally published on bmf-tech.com.

  1. Install QPDF.

brew install qpdf

  1. Unlock the password of the target file.
qpdf --decrypt input.pdf --password=PASSWORD output.pdf
Enter fullscreen mode Exit fullscreen mode

~End~

Top comments (0)