You are right. Flushing and closing does indeed help. PDF created, all problems solved, thanks to everybody involved.
Regards, Georg Datterl ------ Kontakt ------ Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult & Content GmbH: www.willmycc.de -----Ursprüngliche Nachricht----- Von: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Gesendet: Mittwoch, 8. Dezember 2010 19:53 An: fop-users@xmlgraphics.apache.org Betreff: Re: FOP creates corrupt PDF? (was: ValidationException: Document is empty) I had no problem generating a good PDF from your bill.fo with FOP 1.0. I can see, though, that your bill.pdf is unfinished. It lacks the PDF trailer. Could be that you got some exception or that your code does not properly flush/close the written file. I did it from the command-line. On 08.12.2010 14:41:08 Georg Datterl wrote: > You are correct. I inherited the file and thought I might migrate to > FOP1.0 without much work. Anyway, now I changed my transformation and > I'm back to present a true FOP problem. > > Bill.pdf is created with fop-1.0 as provided by maven. Output.pdf is > created by fop-trunk. Output.pdf looks quite correct (except for minor > layout problems), but Acrobat Reader 7.0 can't open Bill.pdf. I can see > some differences in the file, but I don't know what they mean. Can > somebody tell me what might be the reason for the difference? <snip/> Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org