Closing the buffered out without flushing causes the PDF file to be closed
before all data is written to it. Originally when I started working with the
embedded FOP I had this problem...adding the flush got rid of the problem
completely.

Another user had the same problem and reported it on 3/6/07 in a message
titled, "FOP 0.93 generated a damaged PDF File". Liam responded on 3/7/07 to
do a flush before the close.

According to
http://java.sun.com/j2se/1.4.2/docs/api/java/io/FilterOutputStream.html#clos
e(), the flush() should be implicit, which agrees with your response.

On a possibly related note, I only experienced the problem within the
context of my servlet, never on my local system, so I'm not ruling out a
java bug.

Jeff




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

Reply via email to