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

Document stream used a undefined font resource

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0, 1.7.0
    • Fix Version/s: 1.7.0
    • Labels:
      None
    • Environment:
      JDK 1.5, Eclipse 3.X

      Description

      I can not find the font (F3) in resouces, but the content stream included the follow script

      BT /F3 8 Tf ET q BT /F3 8 Tf 0 0 0.6275 rg 0 0 0.6275 RG 1 0 0 1 1 5.89 Tm 8 TL (www.global-reports.com)Tj ()'
      ET Q

      and then, some exceptions are threw.

      15:25:19,985 WARN [PDFStreamEngine] java.io.IOException: Error: Could not find font(COSName

      {F3}) in map={F2=org.apache.pdfbox.pdmodel.font.PDType1Font@18f5824}
      java.io.IOException: Error: Could not find font(COSName{F3}

      ) in map=

      {F2=org.apache.pdfbox.pdmodel.font.PDType1Font@18f5824}

      at org.apache.pdfbox.util.operator.SetTextFont.process(SetTextFont.java:57)
      at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:553)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:270)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237)
      at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217)

      15:25:19,985 WARN [PDFStreamEngine] java.lang.NullPointerException
      java.lang.NullPointerException
      at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:357)
      at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
      at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:553)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:270)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237)
      at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217)

        Attachments

        1. 5661890.PDF
          1.03 MB
          philip huang
        2. ASF.LICENSE.NOT.GRANTED--screenshot-1.jpg
          126 kB
          philip huang

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                szqed philip huang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: