Public bug reported:

pdftk has a feature to decrypt password-protected PDF files, but it
doesn't work. It complains that the password is incorrect when in fact
it is correct. The qpdf tool works correctly with the same file and same
password.

$ pdftk K-TOYOTA.pdf output K-TOYOTA-2.pdf user_pw <password>
Error: Failed to open PDF file: 
   K-TOYOTA.pdf
   OWNER OR USER PASSWORD REQUIRED, but not given (or incorrect)
Errors encountered.  No output created.
Done.  Input errors, so no output created.
$ pdftk K-TOYOTA.pdf output K-TOYOTA-2.pdf owner_pw <password>
Error: Failed to open PDF file: 
   K-TOYOTA.pdf
   OWNER OR USER PASSWORD REQUIRED, but not given (or incorrect)
Errors encountered.  No output created.
Done.  Input errors, so no output created.
$ pdftk K-TOYOTA.pdf output K-TOYOTA-2.pdf user_pw <password> owner_pw 
<password>
Error: Failed to open PDF file: 
   K-TOYOTA.pdf
   OWNER OR USER PASSWORD REQUIRED, but not given (or incorrect)
Errors encountered.  No output created.
Done.  Input errors, so no output created.
$ qpdf --password=<password> --decrypt K-TOYOTA.pdf K-TOYOTA-2.pdf
$ gnome-open K-TOYOTA-2.pdf

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: pdftk 1.44-7
ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11
Uname: Linux 3.8.0-23-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Sat Jun 15 14:48:02 2013
InstallationDate: Installed on 2011-04-30 (777 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
MarkForUpload: True
SourcePackage: pdftk
UpgradeStatus: Upgraded to raring on 2013-06-01 (14 days ago)

** Affects: pdftk (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug raring

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1191381

Title:
  pdftk password decryption doesn't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pdftk/+bug/1191381/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to