Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove the printing protection from password-protected PDF files? [closed]

How can I remove the printing protection from password-protected PDF files?

like image 952
Milos Cuculovic Avatar asked Jan 09 '13 10:01

Milos Cuculovic


People also ask

How do I remove password protection from a secured PDF?

How to unlock a PDF to remove password security: Open the PDF in Acrobat. Use the “Unlock” tool: Choose “Tools” > “Protect” > “Encrypt” > “Remove Security.”

Can we take print out of password protected PDF?

Navigate to File -> Print and click the Print button. This will send your password protected PDF to a printer. You may then choose to log in to any print release station to release the job.


2 Answers

When PDF documents are visible but not printable there's an easy workaround when you are using GNU/Linux.

To do that, you have to use the two step procedure:

  1. Print the pdf to postscript
  2. Revert back to normal pdf file

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

And it's done. There is no more password protectin for your pdf document.

like image 162
Milos Cuculovic Avatar answered Sep 22 '22 14:09

Milos Cuculovic


See the answer in pdftk and qpdf to reset PDF commenting security:

Copied from the other answer (written by 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

Example:

qpdf --decrypt crypted.pdf --password=myP@sswor!D uncrypted.pdf
like image 42
reto Avatar answered Sep 20 '22 14:09

reto