pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4590) Reading LaTeX files generate via LuaTeX
Date Thu, 04 Jul 2019 16:55:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-4590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16878806#comment-16878806

Tilman Hausherr commented on PDFBOX-4590:

In your case, the error would come only the very first time when PDFBox is building the cache,
or when it is rebuilding it because there are new fonts. Re "how to make doc", for the test
code you can just construct it with "new PDDocument()". I'm closing the issue for now but
you can reopen it and attach your (presumed) bad fonts so I can analyse them. Maybe the fonts
on your system are corrupted, or maybe they contain PostScript sequences that we don't support.
Or maybe all you need to do is to download the fonts from the URL I mentioned to get a more
current version.

> Reading LaTeX files generate via LuaTeX
> ---------------------------------------
>                 Key: PDFBOX-4590
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4590
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.15
>         Environment: OpenSuSe
>            Reporter: Roland
>            Priority: Major
>              Labels: type1, type1font
> 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
>  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,....

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org

View raw message