如何从密码保护的PDF文件中删除打印保护?

如何从密码保护的PDF文件中删除打印保护?

当PDF文档可见但不可打印时,当您使用GNU / Linux时,有一个简单的解决方法。

要做到这一点,你必须使用两步程序:

  1. 打印pdf到postscript
  2. 恢复到正常的PDF文件

    $ pdftops [your_protected_pdf_document.pdf] out.ps $ pstopdf [out.ps] broken_protection_pdf_document.pdf 

它完成了。 没有更多的密码protectin为您的pdf文档。

请参阅以下答案:

pdftk和qpdf重置PDF注释安全性

从另一个答案复写(写Kunt Pfeifle)

 The command qpdf --decrypt input.pdf output.pdf removes the 'owner' password. But it does only work, if there is no 'user' password set. Once the owner password is removed, the output.pdf should already have unset all security protection and have allowed commenting. Needless to run your extra pdftk ... command then... BTW, your allow paramenter in your pdftk call will not work the way you quoted your command. The allow permissions will only be applied if you also... ...either specify an encryption strength ...or give a user or an owner password Try the following to find out the detailed security settings of the file(s): qpdf --show-encryption input.pdf qpdf --show-encryption output.pdf 

例如:

 qpdf --decrypt crypted.pdf --password=myP@sswor!D uncrypted.pdf