I had the same problem, but it was because the OutputStream is not closed in method 
run() of the class CommandLineStarter of the FOP library. I patched my FOP and closed 
the OutputStream, and have no more problems...

If you use this class try to close the Stream...

Solange Desseignes

-----Message d'origine-----
De : Lewis, Bobby [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 1 mars 2002 00:53
À : Fop-Dev (E-mail)
Objet : Corrupt PDF files?


I have a problem that is hard to debug. I am generating PDF files with FOP,
and the process is working ok most of the time. Sometimes though, the file
becomes corrupt (I'm sending the PDF back to a web browser based on a
request a user makes from a JSP).

Here's what we just found: we're using an external barcode font (a Code39
font). If we take the font out and don't use it in the PDF, it works fine
everytime. Otherwise, it works sometimes. There's no discernible factor as
to why it does/does not work, so I'm thinking there's something buggy in
FOP. Has anyone had any kind of unpredictable behavior before with FOP when
using external fonts? I'm using a TTF, I generated the metric file ok and
everything, because the barcode does show up correctly SOMETIMES.

Any help is greatly appreciated.

Bobby Lewis
Solutions Architect
Aivia
3100 McKinnon Suite 1000
Dallas, TX 75201 

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


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

Reply via email to