Adrian, I had a very similar problem to this. Just before I transformed the fo to pdf I needed to set the system property to headless. This would be done like: System.setProperty("java.awt.headless", "true"); Though I'd recommend storing a string of the original value and resetting it to this value after you trasformation.
On Fri, May 15, 2009 at 1:14 PM, Adrian Wiesmann <awiesm...@somap.org>wrote: > Hello everybody > > I am having a strange problem with FOP and would like to hear your > comments. I am having a UI engine which renders HTML, Swing and now also > PDF via FOP. On some systems I get content in the PDF (text, image, > table), on other systems the PDF have the correct number of pages, but > the pages are empty (white). When opening the empty PDF, I can see the > header information looking all right (and I can see the creator tag > correctly in the PDF). > > The empty PDF are empty not only in Adobe Acrobat Professional, but also > in Reader, KPDF and other readers. > > All systems have the same code. Used libraries seem to be the same on all > systems (Ant script compiles code and generates WAR). > > Systems where everything works: > > - Linux, Eclipse, SUN JDE 1.6, Tomcat 6. > - Windows Vista, Eclipse, SUN JDE 1.6, Tomcat 6. > > Systems where it does not work: > > - Linux, Tomcat 5, IBM JVM. > - Windows Vista, Tomcat 6, SUN JRE. > > The obvious difference is that on the systems where the PDFs are generated > correctly the application is run from within Eclipse. > > I get no error or obvious debug message on any system whatsoever. > > Does anybody have an idea where I could look at or what to test to find > this bug or misconfiguration? Could it be a memory problem, something > missing..? > > I found some threads discussing empty PDF but no solutions to my problem > so far. > > Thanks for your help in advance. > > Cheers, > Adrian > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > -- Sam Fuqua ΣΝ ΘΗ 454