linux下去掉pdf的密码(前提:知道密码)

一.背景

Linux jello 4.16.3 SMP Thu Apr 19 07:32:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

二.去掉密码

2.1 先将pdf转换成ps

pdftops -upw YOUR_PASSWORD input.pdf output.ps

2.2 将ps转换成pdf

ps2pdf output.ps output.pdf

原文地址:https://www.cnblogs.com/dakewei/p/9066548.html