Re: extracting attachments, pdftk bug?



chicks <sea.sbs@xxxxxxxxx> wrote:
On Jul 27, 7:06 am, Andreas Lobinger <newsretu...@xxxxxxxxxxxxx>
wrote:

pdftk 1.12?http://www.accesspdf.com/article.php/20041129175814906


It's up to version 1.41 now....

http://www.pdfhacks.com/pdftk/

Unfortunately, this doesn't compile with gcj 3.2 (as mentioned on
the download page and verified be me just right now ^_^).

Anyway, this patch (against 1.12) does the trick:

--- pdftk.cc.orig 2004-10-27 02:56:18.000000000 +0200
+++ pdftk.cc 2007-07-27 17:34:12.000000000 +0200
@@ -185,7 +185,7 @@ TK_Session::add_reader( InputPdf* input_
// 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;
}

Thanks to Daniel from de.ctp

cu, Bodo
--
Bodo Bellut bodo@xxxxxxxxxx | USE PGP! +-----------+
Stangefolstr. 17 Fax/Mobile: just ask | (key via server |\ O---m /|
44141 Dortmund Fon: +49-700-77-BELLUT | or on request) |/---------\|
PGP: 768/FA18A639 AE 5A 47 40 5A A0 D6 15 8E 54 44 AA 8D DD 6E BD+-----------+
.



Relevant Pages

  • Re: GCC/GCJ and pdftk
    ... shared library "gcj" does not exist ... reason for pdftk not building seems to be that gcj does not compile on ... Use a tool other than pdftk to manipulate your PDF files. ...
    (freebsd-questions)
  • Re: GCC/GCJ and pdftk
    ... GCC 3.4+ when WITHOUT_JAVA in the GCC Makefile is set to no or commented ... shared library "gcj" does not exist ... reason for pdftk not building seems to be that gcj does not compile on ...
    (freebsd-questions)
  • Re: GCC/GCJ and pdftk
    ... GCC 3.4+ when WITHOUT_JAVA in the GCC Makefile is set to no or commented ... shared library "gcj" does not exist ... It's strange though that the reason for pdftk not building seems to be that gcj does not compile on amd64 systems, when this doesn't seem to be true. ...
    (freebsd-questions)
  • Re: Pleas for help from clueless students?
    ... I showed her how to compile it. ... connected to a PDP-11. ... We tried downloading again, and got a major crash during download. ... Reset the LSI-11 and got the PDP-11 prompt again. ...
    (comp.arch.embedded)
  • Re: Disk I/O benchmarks and monitoring
    ... You can download the entire tarball, including the original source and documentation, plus the compiled binary "iozone", from ... ... systems, but if you need it, I can compile it on 64-bit 5.2 and ... What tools do you use to monitor and graph disk I/O throughput? ...
    (AIX-L)