"Carlos E. R." írta:
Hi,
I'm trying to use "pdftk" to decrypt pdfs on the command line, like this:
+++·································· cer@Telcontar:~> pdftk INPUT.pdf output unsecured.pdf do_ask The password you supplied for the input PDF: INPUT.pdf did not work. This PDF is encrypted, and you must supply the owner password to open it. If it has no owner password, then enter the user password, instead. To quit, enter a blank password at the next prompt. Please enter the open password to use on the input PDF: INPUT.pdf. It can be empty, or have a maximum of 32 characters: PASSWORD The password you supplied for the input PDF: INPUT.pdf did not work. This PDF is encrypted, and you must supply the owner password to open it. If it has no owner password, then enter the user password, instead. To quit, enter a blank password at the next prompt. Please enter the open password to use on the input PDF: INPUT.pdf. It can be empty, or have a maximum of 32 characters: ^C cer@Telcontar:~> ··································++-
However, the same password, /pasted/ into evince, works. My password has non alphabetic chars.
Is pdftk supposed to work, or is it buggy? Is my command line syntax wrong?
I'm using openSUSE 13.1, CLI, and "pdftk 1.45".
Hello: I have tried it and it worked for me, using pdftk 1.44 in openSUSE 12.2. I tried theses syntaxes, both worked:
pdftk input.pdf output out.pdf do_ask
pdftk input.pdf input_pw <password> output out.pdf
The password I used was "asdfg **" (without quotation marks and one space before **). I can think of two reasons it does not work for you: 1. You are using the viewing (open) password instead of owner (permission) password. 2. The password has some specific characters that should be escaped. Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org