Hi,

Yes I do get some data which does not equal -1. I used the following:

        BufferedImage img = renderer.getPageImage(0);
        for (int i = 0;i < img.getRaster().getDataBuffer().getSize();i++) {
            if (img.getRaster().getDataBuffer().getElem(i) != -1) {
                System.out.println(img.getRaster().getDataBuffer().getElem(i));
            }
        }

and got the following output:

-16777216
...
-14935012
-789517
-2368549
-16777216
-4605511
...
-11711155
-16053493
-14540254
-4737097
-16777216
-16777216

We do have a bug open which 
occurs on MacOS, although it might also occur on other systems which results in 
blank pages being sent to the printer. It is 
still open at this stage and can be found here: 
https://issues.apache.org/bugzilla/show_bug.cgi?id=53249.

Could you tell us the version of FOP you are running and the operating system?

Regards,

Robert Meyer 

> Date: Fri, 30 Nov 2012 06:47:14 -0800
> From: [email protected]
> To: [email protected]
> Subject: RE: Printed blank page when running example class 
> ExampleFO2JPSPrint.java
> 
> Hi Robert.
> 
> Thanks for your quick response.
> 
> I already have those referenced, except xmlgraphics-commons-1.4svn.jar where
> i have xmlgraphics-commons-1.5.jar.
> 
> When i run i get this messages:
> 
> *FOP ExampleFO2JPSPrint
> 
> Preparing...
> Input: XSL-FO (.\xml\fo\helloworld.fo)
> Output: JPS (Java Printing System)
> 
> Transforming...
> Success!*
> 
> No error and no "Hello world".
> 
> Can you tell me if calling *renderer.getPageImage(0)* you see byte raster
> with values *!=* "-1"?
> 
> 
> 
> --
> View this message in context: 
> http://apache-fop.1065347.n5.nabble.com/Printed-blank-page-when-running-example-class-ExampleFO2JPSPrint-java-tp37429p37431.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]
> 
                                          

Reply via email to