Hi François,

sorry for digging up this old topic again, but I face exactly the same
problem now and it might be really helpful if you could tell me how you
solved it.

I updated my application from FOP 0.93 to 0.94 recently and everything
worked fine. I kept using Xerces 2.6.2 as another resource in my
application depended on this, but this didn't affect FOP 0.94 at all.
Now Xerces hat to be updated, too, and no matter which newer version I
use (I tried 2.7.1 and 2.8.1), they all cause the error you mentioned
when I try to merge two documents into one with the help of iText:

java.io.IOException: Rebuild failed: trailer not found.; Original
message: PDF startxref not found.

I also tried updating iText from 1.4.8 to 1.5.3 and even 2.0.5 - still
no change. So I am quite understandbly interested in what caused your
problem and how you solved it in the end.

Thanks for your help :-)

Cheers

Michael

On 15.06.2007 15:30, fritaly wrote:
> Hi,
> 
> I have a java server whose responsibility is to generate PDF reports by
> using FOP 0.20.5. 
> 
> Sometimes, I have to generate many reports from a single input XML file so I
> have a loop (so no multi-threading here) where, for each iteration, I create
> a new temporary file and let FOP render the PDF into it. It turns out that
> some of those PDFs are truncated. 
> 
> I stumbled upon that bug because I'm trying (by using iText) to merge these
> PDFs into a new PDF file. But iText complains and throws an exception
> saying: "Rebuild failed: trailer not found.; Original message: PDF startxref
> not found."
> 
> When I view the PDF files generated by FOP, some of them are "complete" but
> some others are truncated: the "startxref" element is missing.
> 
> (See uploaded PDF and images for a view of a valid and a truncated PDF
> file).
> 
> Is this bug already known ? Is there sometimes I should do to avoid this ?
> 
> Thanks a lot.
> 
> Cheers,
> 
> François http://www.nabble.com/file/p11139570/valid-pdf.gif 
> http://www.nabble.com/file/p11139570/truncated-pdf.gif 
> http://www.nabble.com/file/p11139570/LYT31033.PDF LYT31033.PDF 

-- 
Michael Bruns                1&1 Internet AG
ShopDev                      Ernst-Frey-Str. 9
[EMAIL PROTECTED]       76135 Karlsruhe
http://www.1und1.de

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas
Gauger, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to