Hello, On Sat, 28 Jun 2014, Istvan Gabor wrote:
"Carlos E. R." írta:
I'm trying to use "pdftk" to decrypt pdfs on the command line, like this: [..] 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 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.
3. it could be an encoding issue (e.g. UTF-8 vs. ISO-8859-*). BTW: I have pdftk-2.02 on my 12.1, Build Date : Wed 09 Apr 2014 04:13:00 PM CEST from the Publishing repo. Could be worth a try if it's an encoding issue. From the changelog: * 2.02 - July 24, 2013 [..] o Fixed a password bug where some 'upper-ASCII' characters weren't being mapped to the correct code points. o Fixed a 40-bit decryption bug introduced in version 2.00 [..] o Added a test to ensure that encryption passwords use permitted characters only. (Decryption attempts still allow a larger set of input characters.) [..] * 2.01 - June 5, 2013 [..] * 2.00 - May 22, 2013 o Added AES decryption of input PDFs. The 'owner' password is still required when decrypting any PDF. [..] * 1.45 - December 6, 2012 So, it could be 4. a by now fixed bug in the password/decryption handling of pdftk. I just checked: Upstream is still at 2.02, see http://www.pdflabs.com/docs/install-pdftk-on-redhat-or-centos/ So, (if 13.1 is your oS version), zypper ar http://download.opensuse.org/repositories/Publishing/openSUSE_13.1/Publishin... zypper ref zypper up pdftk might solve your problem. HTH, -dnh -- G'Kar: "All of life can be broken down into moments of transition or moments of revelation. This had the feeling of both." Babylon 5 - 3x22 - Z'Ha'Dum -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org