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

ClassCastException in PDColor constructor: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSNumber

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6, 3.0.0 PDFBox
    • Rendering
    • None

    Description

      java.lang.ClassCastException: org.apache.pdfbox.cos.COSNull cannot be cast to org.apache.pdfbox.cos.COSNumber
          org.apache.pdfbox.pdmodel.graphics.color.PDColor.<init>(PDColor.java:66)
          org.apache.pdfbox.contentstream.operator.color.SetColor.process(SetColor.java:49)
          org.apache.pdfbox.contentstream.operator.color.SetNonStrokingDeviceGrayColor.process(SetNonStrokingDeviceGrayColor.java:40)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
          org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:206)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68)
          org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:246)
          org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:227)
          java.lang.Thread.run(Unknown Source)
      

      Attachments

        1. 002400-p26.pdf
          15 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: