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

MyPageDrawer#getPaint may produce UnsupportedOperationException

    XMLWordPrintableJSON

Details

    Description

      this is the detail message:
      Exception in thread "main" java.lang.UnsupportedOperationException
      at org.apache.pdfbox.pdmodel.graphics.color.PDPattern.toRGB(PDPattern.java:95)
      at org.apache.pdfbox.pdmodel.graphics.color.PDColor.toRGB(PDColor.java:153)
      at org.apache.pdfbox.examples.rendering.CustomPageDrawer$MyPageDrawer.getPaint(CustomPageDrawer.java:109)
      at org.apache.pdfbox.rendering.PageDrawer.getNonStrokingPaint(PageDrawer.java:748)
      at org.apache.pdfbox.rendering.PageDrawer.fillPath(PageDrawer.java:880)
      at org.apache.pdfbox.examples.rendering.CustomPageDrawer$MyPageDrawer.fillPath(CustomPageDrawer.java:163)
      at org.apache.pdfbox.contentstream.operator.graphics.FillEvenOddRule.process(FillEvenOddRule.java:37)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:933)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:514)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:492)
      at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)
      at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:280)
      at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:347)
      at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:268)
      at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:228)
      at org.apache.pdfbox.examples.rendering.CustomPageDrawer.main(CustomPageDrawer.java:67)

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            sundw Dewang Sun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: