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

Rendering issues with colors and transparency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1.0, 1.5.0, 1.6.0, 2.0.0
    • None
    • Rendering
    • None
    • Debian Squeeze

    Description

      Hello,

      I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.

      An example of such a PDF-file (v1.4) could be sent...

      The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.

      Additionally, the following trace will be printed:
      04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
      WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
      java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
      at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
      at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
      at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
      at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
      at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
      at org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:130)
      at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
      at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
      at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
      at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)

      Attachments

        1. PDFBOX-994.pdf-1.png
          125 kB
          Tilman Hausherr
        2. PDFBOX994-Test_PDFBox1.png
          296 kB
          Andreas Lehmkühler
        3. r1636079.jpg
          431 kB
          John Hewson
        4. Test_PDFBox.pdf
          75 kB
          Andreas Romeyke
        5. Test_PDFBox.png
          346 kB
          Andreas Romeyke

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andreas.romeyke Andreas Romeyke
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: