Package: pdftk
Version: 1.41-3

With a PDF which is encrypted and has an owner password set, but no user password (so I can view it in any other tool), it refuses to do anything unless you provide the owner password. There's no reason for it to do so, it just arbitrarily decides not to work.

This patch fixes it for me:

diff -ur pdftk-1.41/pdftk/pdftk.cc pdftk-1.41-2/pdftk/pdftk.cc
--- pdftk-1.41/pdftk/pdftk.cc   2006-11-28 17:51:36.000000000 -0500
+++ pdftk-1.41-2/pdftk/pdftk.cc 2009-06-01 23:43:24.000000000 -0400
@@ -191,7 +191,7 @@
                // store in this java object so the gc can trace it
                g_dont_collect_p->addElement( reader );

- input_pdf_p->m_authorized_b= ( !reader->encrypted || reader->passwordIsOwner );
+               input_pdf_p->m_authorized_b= true;
                if( !input_pdf_p->m_authorized_b ) {
                        open_success_b= false;
                }




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to