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 (35)


Comments

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

Thank you!!1

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

nothing special

Bernardcoeds on Sunday, October 19, 2025 at 02:40

Champion Casino is an online platform where even the bonus program is unlike other gambling clubs https://madou104.ru/rus-rus/

Bernardcoeds on Sunday, October 19, 2025 at 03:28

Champion Casino is an online platform where even the bonus program is unlike other gambling clubs https://madou104.ru/rus-rus/

Bernardcoeds on Sunday, October 19, 2025 at 08:36

For sports bonuses, wager the bonus amount 5x on accumulator bets with at least three events <a href="http://morandi.phorum.pl/viewtopic.php?p=19188#19188">http://morandi.phorum.pl/viewtopic.php?p=19188#19188</a>

Bernardcoeds on Sunday, October 19, 2025 at 11:00

Terms remain accessible: 5x wagering on accumulators <a href="https://www.mrclarksdesigns.builderspot.com/board/board_topic/690695/7317246.htm">https://www.mrclarksdesigns.builderspot.com/board/board_topic/690695/7317246.htm</a>

Bernardcoeds on Sunday, October 19, 2025 at 11:51

Terms remain accessible: 5x wagering on accumulators <a href="http://aredsoaclus.phorum.pl/viewtopic.php?p=125785#125785">http://aredsoaclus.phorum.pl/viewtopic.php?p=125785#125785</a>

1win_uz_ozEi on Sunday, October 19, 2025 at 14:04

1win uz [url=https://1win5510.ru/]1win uz[/url]

Bernardcoeds on Sunday, October 19, 2025 at 23:58

Bet on sports using our online betting platform. Get the best odds <a href="https://postimg.cc/62CjL6F7">https://postimg.cc/62CjL6F7</a>

Bernardcoeds on Monday, October 20, 2025 at 00:51

Bet on sports using our online betting platform. Get the best odds <a href="https://md.chaospott.de/s/g99Yuc_eT">https://md.chaospott.de/s/g99Yuc_eT</a>

svorf_lkKl on Monday, October 20, 2025 at 08:24

Перед началом службы стоит уточнить, где именно можно подписать контракт на СВО в России. [url=https://vc.ru/social/1690460-sluzhba-po-kontraktu-v-surgute-kontrakt-na-svo-rossiya-2025]https://vc.ru/social/1690460-sluzhba-po-kontraktu-v-surgute-kontrakt-na-svo-rossiya-2025[/url] Теперь вы знаете, какие пункты работают для тех, кто хочет заключить контракт на военную службу и претендовать на выплаты.

Bernardcoeds on Monday, October 20, 2025 at 23:14

On the 1xbet betting platform, players have the opportunity to use sports betting, the casino <a href="http://alneyzeha.phorum.pl/viewtopic.php?p=89101#89101">http://alneyzeha.phorum.pl/viewtopic.php?p=89101#89101</a>

Bernardcoeds on Tuesday, October 21, 2025 at 00:05

On the 1xbet betting platform, players have the opportunity to use sports betting, the casino <a href="https://www.4shared.com/u/vX3LWS30/1xbetofficialpromocode.html">https://www.4shared.com/u/vX3LWS30/1xbetofficialpromocode.html</a>

Bernardcoeds on Tuesday, October 21, 2025 at 03:18

Pin-up offers a safe slot for all gambling and casino enthusiasts. At Pin-up slots <a href="https://xn--90asdbla8a.xn--p1ai">https://xn--90asdbla8a.xn--p1ai</a>

Bernardcoeds on Tuesday, October 21, 2025 at 04:08

Pin-up offers a safe slot for all gambling and casino enthusiasts. At Pin-up slots <a href="https://xn--90asdbla8a.xn--p1ai">https://xn--90asdbla8a.xn--p1ai</a>

Gichardfen on Tuesday, October 21, 2025 at 05:32

Hello everyone, it's my first pay a quick visit at this site, and article is really fruitful for me, keep up posting these articles or reviews.

<a href=https://staffinggoals.com>staffinggoals</a>

Bernardcoeds on Tuesday, October 21, 2025 at 12:36

Watch online videos from Pin Up Casino official website <a href="https://xn--218-8cd9a3c.xn--p1ai">https://xn--218-8cd9a3c.xn--p1ai</a>

TimsothyBat on Tuesday, October 21, 2025 at 13:25

Tremendous things here. I'm very happy to look your post. Thanks a lot and I am taking a look ahead to contact you. Will you please drop me a mail?
<a href=https://easystaffingmd.com/>easystaffingmd.com</a>

Bernardcoeds on Tuesday, October 21, 2025 at 13:26

Watch online videos from Pin Up Casino official website <a href="https://xn--218-8cd9a3c.xn--p1ai">https://xn--218-8cd9a3c.xn--p1ai</a>

Bernardcoeds on Wednesday, October 22, 2025 at 01:37

Pin Up Casino is the official website of a well-known online casino for players <a href="https://detsad47kamyshin.ru">https://detsad47kamyshin.ru</a>

Bernardcoeds on Wednesday, October 22, 2025 at 02:37

Pin Up Casino is the official website of a well-known online casino for players <a href="https://detsad47kamyshin.ru">https://detsad47kamyshin.ru</a>

Bernardcoeds on Wednesday, October 22, 2025 at 10:55

https://xnudes.ai/

Bernardcoeds on Wednesday, October 22, 2025 at 11:45

https://xnudes.ai/

Bernardcoeds on Wednesday, October 22, 2025 at 13:35

Партнёрская CPA-сеть 3SNET — надёжный источник высококонверсионных офферов <a href="https://3snet.co">3SNET: iGaming offers and traffic</a>

nasvo_tkKl on Wednesday, October 22, 2025 at 14:09

https://vc.ru/money/1653109-feldshery-skoroi-pomoshi-na-svo-rol-paramedikov-v-zone-boevyh-deistvii

Bernardcoeds on Wednesday, October 22, 2025 at 14:24

Партнёрская CPA-сеть 3SNET — надёжный источник высококонверсионных офферов <a href="https://3snet.co">Тут</a>

Bernardcoeds on Thursday, October 23, 2025 at 00:23

CPA-сети – это агрегаторы партнерских программ, которые собирают множество предложений в одном месте <a href="https://3snet.co">3SNET: iGaming offers and traffic</a>

Bernardcoeds on Thursday, October 23, 2025 at 01:38

CPA-сети – это агрегаторы партнерских программ, которые собирают множество предложений в одном месте <a href="https://3snet.co">3SNET: качественный iGaming и беттинг трафик</a>

CharlesTweva on Thursday, October 23, 2025 at 07:33

Football penalty shootout, or kabaddi raid climax, and comprehensive bet insurance options <a href="https://myworldgo.com/forums/topic/252112/1x-bet-promo-code-pakistan-2026-390-000-pkr-150-spins/view/post_id/2607881">https://myworldgo.com/forums/topic/252112/1x-bet-promo-code-pakistan-2026-390-000-pkr-150-spins/view/post_id/2607881</a>

CharlesTweva on Thursday, October 23, 2025 at 08:25

Football penalty shootout, or kabaddi raid climax, and comprehensive bet insurance options <a href="https://ekonty.com/blogs/438928/1xBet-Promo-Code-2026-1XBRO200-Free-100">https://ekonty.com/blogs/438928/1xBet-Promo-Code-2026-1XBRO200-Free-100</a>

CharlesTweva on Thursday, October 23, 2025 at 10:32

Premier League fixture at the Gtech Community Stadium <a href="https://pinup-360.one/">porno videos</a>

CharlesTweva on Thursday, October 23, 2025 at 11:22

Premier League fixture at the Gtech Community Stadium <a href="https://pinup-360.one/">altyazi porno</a>

CharlesTweva on Thursday, October 23, 2025 at 12:33

Глубокий разбор видов стеллажей — от универсальных полочных до высокотехнологичных систем паллетного хранения <a href="https://forum-otzyvov.ru/threads/skladskie-palletnye-stellazhi.317543/">https://forum-otzyvov.ru/threads/skladskie-palletnye-stellazhi.317543/</a>

CharlesTweva on Thursday, October 23, 2025 at 13:24

Глубокий разбор видов стеллажей — от универсальных полочных до высокотехнологичных систем паллетного хранения <a href="https://realistzoosafety.forum24.ru/?1-11-0-00002268-000-0-0-1758810648">https://realistzoosafety.forum24.ru/?1-11-0-00002268-000-0-0-1758810648</a>

1xbet_mvmn on Thursday, October 23, 2025 at 18:55

1xbet ?ye ol [url=https://1xbet-4.com/]1xbet-4.com[/url] .

Add a comment

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

Comment: