Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3637

Fail to convert PDF to tiff,when render a page that numChanels is 3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.2
    • None
    • None
    • None

    Description

      Start to render page : 1
      Colot Model is DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0
      Start to render page : 2
      Colot Model is DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0
      Start to render page : 3
      Exception in thread "main" java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components do not match
      at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:471)
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1181)
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1149)
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:960)
      at javax.imageio.ImageReader.read(ImageReader.java:934)
      at org.apache.pdfbox.filter.DCTFilter.decode(DCTFilter.java:83)
      at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69)
      at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:162)
      at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:235)
      at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:160)
      at org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:70)
      at org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:409)
      at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:53)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:829)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:486)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:460)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
      at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:189)
      at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145)
      at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68)
      at com.hsbc.bussvc.wt.service.utils.PdfTools.prepareTiff(PdfTools.java:91)
      at com.hsbc.bussvc.wt.service.prepareTiffIssue.main(prepareTiffIssue.java:42)

      Attachments

        Activity

          People

            Unassigned Unassigned
            LuxJaveCode Lux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: