Interesting. I think I shall try to reproduce the problem in a quiet moment.
Thanks for the code snippet. A note on that: I consider it better style to put the close() in a finally section so you don't have to make sure that the close() is called in every situation (exception or not). On 13.03.2007 01:28:17 Jeff Vannest wrote: > 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 Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]