如何从受密码保护的 PDF 文件中删除打印保护?
问问题
9429 次
2 回答
15
当 PDF 文档可见但不可打印时,使用 GNU/Linux 时有一个简单的解决方法。
为此,您必须使用两步程序:
- 将pdf打印到postscript
恢复正常的pdf文件
$ pdftops [your_protected_pdf_document.pdf] out.ps $ pstopdf [out.ps] broken_protection_pdf_document.pdf
它已经完成了。您的 pdf 文档不再有密码保护。
于 2013-01-09T10:59:31.847 回答
8
请参阅 pdftk 和 qpdf 中的答案以重置 PDF 评论安全性:
复制自另一个答案(由 Kurt 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 parameter 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
于 2013-11-19T12:21:04.043 回答