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

illegalArgumentException for rendering PDF (image extraction)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.26, 3.0.0 PDFBox
    • 2.0.27, 3.0.0 PDFBox
    • Rendering
    • None

    Description

      This is an issue related to PDFBOX-2326 

      I get the same fault with the attached PDF.

      java.lang.IllegalArgumentException: Use PDType1CFont for FontFile3    at org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:223)
          at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:111)
          at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
          at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66)
          at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:849)
          at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
          at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
          at org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:173)
          at org.apache.pdfbox.rendering.PageDrawer.showForm(PageDrawer.java:1428)
          at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:86)
          at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:849)
          at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
          at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
          at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:142)
          at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:264)
          at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:338)
          at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:259)
          at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:245)

      Attachments

        1. fontIssues.pdf
          737 kB
          Reza Derakhshan
        2. test.zip
          1 kB
          Reza Derakhshan

        Activity

          People

            tilman Tilman Hausherr
            RezaDer Reza Derakhshan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: