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

Reading LaTeX files generate via LuaTeX

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.15
    • Fix Version/s: None
    • Component/s: FontBox
    • Labels:
    • Environment:
      OpenSuSe

      Description

      When I try to load a PDF-file generated via LuaTex I get the exceptions from below. This happens only the very first time of initialiation.

       

      2019-07-03 09:16:29,661 [http-nio-8080-exec-3] ERROR o.a.p.p.font.FileSystemFontProvider - Could not load font file: /usr/share/fonts/texlive-sourcecodepro/SourceCodePro-Black.pfb
      java.io.IOException: Found Token[kind=LITERAL, text=UnderlinePosition] but expected NAME
      at org.apache.fontbox.type1.Type1Parser.read(Type1Parser.java:825)
      at org.apache.fontbox.type1.Type1Parser.read(Type1Parser.java:836)
      at org.apache.fontbox.type1.Type1Parser.readSimpleDict(Type1Parser.java:352)
      at org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:127)
      at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:61)
      at org.apache.fontbox.type1.Type1Font.createWithPFB(Type1Font.java:56)
      at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.addType1Font(FileSystemFontProvider.java:666)
      at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.scanFonts(FileSystemFontProvider.java:264)
      at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.<init>(FileSystemFontProvider.java:234)
      at org.apache.pdfbox.pdmodel.font.FontMapperImpl$DefaultFontProvider.<clinit>(FontMapperImpl.java:128)
      at org.apache.pdfbox.pdmodel.font.FontMapperImpl.getProvider(FontMapperImpl.java:147)

       

      same applies for the other fonts of SourceCodePro, i.e. SourceCodePro-BlackIt.pfb, SourceCodePro-Bold.pfb, SourceCodePro-BoldIt.pfb, SourceCodePro-ExtraLight.pfb, SourceCodePro-ExtraLightIt.pfb, SourceCodePro-It.pfb,....

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Roland4745 Roland
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: