I have submitted a bug report on this at
https://issues.apache.org/jira/browse/PDFBOX-616,
along with the problem file as an attachment.
If there is any issue with the file format, it would be helpful to me
to know what it is. I may
need to implement support for this format, from a Canon scanner.
If anyone can help me, I would greatly appreciate it.
Alan
From: Alan Thomas
Sent: Tuesday, February 09, 2010 11:19 PM
To: [email protected] ; [email protected]
Subject: PDF Box: Not getting RGBimage
Hi. I am extracting images from a PDF document that has content on every
page.
To process it further, I get the RGBImage from the PDXObjectImage.
However, for one particular file, this RGBImage is returning null for every
page.
What might be causing this?
Thanks, Alan
PDXObjectImage image = (PDXObjectImage)images.get(
key );
System.out.println("PDX image has height = " +
image.getHeight()
+ " and width " +
image.getWidth());
// Convert image to a Buffered Image, so we can
// look for a barcode and decode it
BufferedImage RGBimage = image.getRGBImage();
if (RGBimage == null)
System.out.println("RGBimage is null");