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

NPE when converting pdf to image.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.25, 2.0.29, 3.0.0 PDFBox, 4.0.0
    • 2.0.30, 3.0.1 PDFBox, 4.0.0
    • Rendering
    • None

    Description

      For attached pdf I am getting a null pointer exception when converting it to image. Log attached.

      java.lang.NullPointerException at org.apache.pdfbox.rendering.PageDrawer.getPaint(PageDrawer.java:355) at org.apache.pdfbox.rendering.PageDrawer.getNonStrokingPaint(PageDrawer.java:747) at org.apache.pdfbox.rendering.PageDrawer.fillPath(PageDrawer.java:914) at org.apache.pdfbox.rendering.PageDrawer.fillAndStrokePath(PageDrawer.java:1019) at org.apache.pdfbox.contentstream.operator.graphics.FillNonZeroAndStrokePath.process(FillNonZeroAndStrokePath.java:39) at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:939) 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:282) at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)

      Attachments

        1. test.pdf
          1.01 MB
          Ritu Dubey
        2. PDFBOX-5665-2_unc.pdf
          150 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            ritudubey Ritu Dubey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: