[ https://issues.apache.org/jira/browse/PDFBOX-1067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235782#comment-13235782 ]
Dave Smith commented on PDFBOX-1067: ------------------------------------ OK after looking at PDF File ItDoesntWorkScan.pdf the jbig2-imagio works perfectly. The problem is in page object there is a /Rotate 270 that org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(PDFOperator operator, List<COSBase> arguments) seems to be ignoring and thus rendering only the white bit. I pulled the jbig2 image out of the pdf and have attached it. Here is the jbig2-imagio stub to convert the pulled image to a png. You will note the rotation of the image is 270 degrees. public class JBig2Spike { public static void main(String[] args) throws Exception { ImageIO.scanForPlugins(); Iterator<ImageReader> readers = ImageIO.getImageReadersByFormatName("JBIG2"); ImageReader reader = readers.next(); reader.setInput(ImageIO.createImageInputStream(new FileInputStream("ItDoesntWorkScan.jbig2"))); BufferedImage bi = reader.read(0); FileOutputStream out = new FileOutputStream("ItDoesntWorkScan.png"); ImageIO.write(bi, "png", out); //$NON-NLS-1$ out.close(); System.exit(0); } } > PDF Scan from Xerox WorkCentre 5030 renders as all black > -------------------------------------------------------- > > Key: PDFBOX-1067 > URL: https://issues.apache.org/jira/browse/PDFBOX-1067 > Project: PDFBox > Issue Type: New Feature > Components: PDModel > Affects Versions: 1.6.0 > Environment: Tested on MacOS X 10.6.7, Ubuntu 10.10, Windows 7 > Reporter: Sarah Kelley > Attachments: ItDoesntWorkScan.pdf, sakelley_pdf_rendering_problem.zip > > > The file "ItDoesntWorkScan.pdf" renders to an empty > black page. This file is a copy of "ItDoesntWorkPrinted.pdf" > that has been printed on paper, and then scanned with > a Xerox WorkCentre 5030 scanner, which then emails a pdf file > back to the user. > Tested On: > - Mac OS 10.6 > - Windows 7 > - Ubuntu 10.10 > Unfortunately, the WorkCentre 5030 doesn't appear to have > many user-settable options for scanning to PDF, so we weren't > really able to try scanning with settings other than the defaults. > Will attach pdf and code to demonstrate. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira