Encrypting and decrypting PDFs using QPDF

Saturday, March 14, 2020


If you have a password-protected PDF and want to generate a decrypted version, it’s very simple with QPDF:

$ qpdf --password=123 --decrypt input.pdf output.pdf

To avoid entering the password on the command line (perhaps you don’t want it saved in your shell history):

$ qpdf @- --decrypt input.pdf output.pdf

Then enter --password=123 and hit enter and ^D.

To encrypt a PDF, do this:

$ qpdf --encrypt userPw ownerPw 256 -- input.pdf output.pdf

Similarly, to avoid including the passwords in the command, do this:

$ qpdf --encrypt @- @- 256 -- input.pdf output.pdf

And then type the user password, hit enter, the owner password, enter, and ^D.

Tags: pdf | Posted at 22:04 | Comments (3)


Comments

KINCAIDE3 on Sunday, January 3, 2021 at 23:02

Thank you!!1

Ipl2025max on Sunday, September 21, 2025 at 10:43

nothing special

Donaldneami on Monday, March 16, 2026 at 17:19

I've been testing online casinos lately and stumbled upon <a href=https://justpaste.me/0dBC4>Talismania casino</a>
. Since they're licensed (Curacao license, operated by Rabidi N.V.), I decided to check it out .

First impressions: The mystical theme is unique – lots of luck symbols . Navigation is easy to use.

Games: 4,500+ titles from top providers . I'm a live dealer lover and was happy with the variety. Evolution section feels high quality.

Bonuses: Decent welcome offer – match deposit plus free spins . Playthrough around 35x ( fair). Reloads for regulars, plus loyalty rewards.

Payments: Visa, e-wallets, crypto. Withdrawals took 24-48 hours . Caps apply but are reasonable. Security is solid.

Support: 24/7 live chat – helpful when I needed assistance.

Overall: Worth checking out if you want a licensed casino with great games . Just play smart.

Add a comment

Name:
Email: (optional, not displayed to public)
URL: (do not fill this in — leave blank!)

Comment: