Hi, I have just tried the example and managed to get it to print fine.
Are you sure you have all the necessary jars in your classpath? I created a small eclipse project and ran with the following jars to get it to work: avalon-framework-4.2.0.jar batik-all-1.7.jar commons-io-1.3.1.jar commons-logging-1.0.4.jar fop.jar xmlgraphics-commons-1.4svn.jar If you find you already have those referenced, do you get any messages / errors on the command line when printing? Regards, Robert Meyer > Date: Fri, 30 Nov 2012 05:41:23 -0800 > From: [email protected] > To: [email protected] > Subject: Printed blank page when running example class ExampleFO2JPSPrint.java > > Hi. > I am interested in using the BufferedImage produced by a custom renderer. > I tried to run the example class ExampleFO2JPSPrint.java and it produced a > blank page instead of "Hello world". > The method renderer.getPageImage(0) returns an image with raster bytes sets > to -1. > Can anyone help me? > Thanks. > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/Printed-blank-page-when-running-example-class-ExampleFO2JPSPrint-java-tp37429.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
