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

PDType1Font <init> Can't read the embedded Type1 font ArialMT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Not A Bug
    • 2.0.25
    • None
    • FontBox
    • Windows 10, JDK15, Gradle 6.7, Spring Boot 2.3.4

    Description

      Hello,

      I have this error when i send a file to print:

      PDType1Font <init> Can't read the embedded Type1 font ArialMT
      java.io.EOFException: attempted to read past EOF
          at org.apache.fontbox.pfb.PfbParser.parsePfb(PfbParser.java:163)
          at org.apache.fontbox.pfb.PfbParser.<init>(PfbParser.java:125)
          at org.apache.fontbox.type1.Type1Font.createWithPFB(Type1Font.java:69)
          at org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:247)
          at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:76)
          at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
          at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66)
          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.renderPageToGraphics(PDFRenderer.java:466)
          at org.apache.pdfbox.printing.PDFPrintable.print(PDFPrintable.java:264)
          at java.desktop/sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2275)
          at java.desktop/sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1654)

       

      Thread PDType1Font <init> Can't read the embedded Type1 font Arial-BoldMT
      java.io.EOFException: attempted to read past EOF
          at org.apache.fontbox.pfb.PfbParser.parsePfb(PfbParser.java:163)
          at org.apache.fontbox.pfb.PfbParser.<init>(PfbParser.java:125)
          at org.apache.fontbox.type1.Type1Font.createWithPFB(Type1Font.java:69)
          at org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:247)
          at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:76)
          at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
          at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66)
          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.renderPageToGraphics(PDFRenderer.java:466)
          at org.apache.pdfbox.printing.PDFPrintable.print(PDFPrintable.java:264)
          at java.desktop/sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2275)
          at java.desktop/sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1654)

      Attachments

        1. label.pdf
          66 kB
          Artur

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Krys Artur
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: