2013-01-09 118 views

回答

11

當PDF文檔可見但不可打印時,在使用GNU/Linux時有一個簡單的解決方法。

要做到這一點,你必須使用兩個步驟:

  1. 打印PDF到後記
  2. 恢復到正常的PDF文件

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

而且它的完成。沒有更多的密碼protectin爲您的pdf文檔。

+2

其實有破壞性較小的方式從PDF文件中刪除否定的權限。您的解決方法破壞了文檔的交互功能。儘管如果您只需要打印PDF的方式就沒問題,但在其他禁止許可的情況下,這不是您想要的。 – mkl

+0

@mkl,在這個小小的教程中,我正在描述打印保護強度以及如何去除打印保護密碼(以便打印pdf)。 –

+0

好一個:) @Milos – Freak

3

看到答案中:

pdftk and qpdf to reset PDF commenting security

從對方的回答(writen貝庫爾特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 [email protected]!D uncrypted.pdf