System returns the following message when converting a PDF file to Image using PDFBox,
Jun 27, 2012 3:45:07 PM org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap getRGBImage
SEVERE: Something went wrong ... the pixelmap doesn't contain any data.
Writing: output1.jpg
Jun 27, 2012 3:45:07 PM org.apache.pdfbox.util.operator.pagedrawer.Invoke process
WARNING: getRGBImage returned NULL
result: true
A blanked image will be generated in this case.
Resolution
1. You may try to add Java Advanced Image library I/O Tools to your project for the fix.
http://www.oracle.com/technetwork/java/current-142188.html
3. Though there is still an WARNING message of EOC marker not found. Codestream is corrupted. shown in the output console, the image is generated successfully.
The usage of PDFBox can be found in the following URL:
http://yp-javadev.blogspot.hk/2012/06/useful-api-converting-pdf-to-image.html