Wednesday, December 2, 2009

Convert copy protected PDFs to unprotected, using two simple commands in Ubuntu

Use two simple commands to convert a protected pdf into an unprotected pdf.

Here in this example i assume the protected pdf file name to be 'protected.pdf'.

Now open your terminal and type.

$ pdftops protected.pdf out.ps

$ pstopdf out.ps out.pdf

The out.pdf will be your unprotected PDF.

If you don't have pstopdf and pdftops installed then type this at terminal to install them.

$ sudo apt-get install context

3 comments:

rravich on December 4, 2009 4:41 PM said...

Interesting, so I tried it and pdftops complains about not having the correct password. I wonder if it is version dependant?

phlogiston on December 8, 2009 6:13 PM said...

try pdf2ps...

Alex Ho on December 21, 2009 8:41 AM said...

I've tried it on a DRM PDF and it doesn't work. It prompted messages like

**** This file uses an unknown security handler.
**** The file was produced by:
**** ......

Error: ....

 

Linux Tips Copyright © 2009 Dipin Krishna @ Linuxense