I just bought a PDF, legally, from a publisher's website. However, in their wisdom, they decided it would be a good idea to password protect all legally-purchased PDFs. This means that each time you open the PDF using Acrobat Reader, you have to remember and type in the password to read it. (Evince, the built-in PDF viewer in Linux, allows you to permanently save the password, but I tend to use Acrobat as it copes better with some PDFs.)
So, if you know the password for a PDF and want to remove it, you can use the command line tools pdftops and ps2pdf to free your PDF from its chains.
The only thing you lose are any PDF-specific features which don't translate to postscript, e.g. hyperlinks.
Remember, this only works if you know the password for the PDF: it doesn't break the PDF password for you.
Comments
Better use pdftk
Pdftk is a packaged on Debian an should be in many other distributions.
If not, it can be downloaded at http://www.accesspdf.com/pdftk/
apt-get install pdftk
pdftk secured.pdf input_pw foopass output unsecured.pdf
As ps is not used, links are not lost and pdftk can do much more for you.
But pdftk needs OWNER
But pdftk needs OWNER password and to use the method decribed above you only need USER pass.
qpdf
qpdf can decrypt a file with password. And don't have to depend on java crap.
Thanks for clarifying.
Thanks for clarifying.
Aha, great! I hadn't heard
Aha, great! I hadn't heard of that application.