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

converttoimage error and part of the pdf is not rendered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Rendering
    • None

    Description

      And on source.pdf
      java.lang.ClassCastException: org.apache.pdfbox.cos.COSArray cannot be cast to org.apache.pdfbox.cos.COSStream
      at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getMask(PDImageXObject.java:255)
      at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage(PDImageXObject.java:154)
      at org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:84)
      at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:532)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:260)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:227)
      at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:209)
      at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:144)
      at org.apache.pdfbox.util.RenderUtil.renderPage(RenderUtil.java:225)
      at org.apache.pdfbox.util.RenderUtil.convertToImage(RenderUtil.java:190)
      at main.java.output2jpg.pdf2img(output2jpg.java:270)
      at main.java.output2jpg.main(output2jpg.java:116)
      feb 22, 2014 11:02:01 AM org.apache.pdfbox.util.operator.pagedrawer.Invoke process

      Attachments

        1. source.pdf
          7 kB
          lieven vanlerberghe
        2. image_demo.pdf
          3 kB
          John Hewson

        Issue Links

          Activity

            People

              jahewson John Hewson
              lievenvlb lieven vanlerberghe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: