If I have a PDF and I have its password, I can merely send it to a PDF printer to get a new PDF with the same contents and no password. The process is not exactly painless though (Ubuntu's inbuilt PDF printer, for example, doesn't seem too interested in honoring my page orientation settings; PDFCreator for Windows merely looked at me funny and printed an error message, etc.)
I'd like to make this process a little less painful and I imagine ImageMagick could come to my help. However...
convert foo.pdf -authenticate baz bar.pdf
...doesn't give me joy.
**** This file requires a password for access. **** The file was produced by: **** >>>> �Sh�Ў,bd� a���߰� �u�|! ���� <<<< Error: /invalidfileaccess in pdf_process_Encrypt
Now... I guess that if there's
pdf_process_Encrypt, chances are there's also support for a
pdf_process_Decrypt operation, right?
How can I do this then?