You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2019/07/03 16:13:00 UTC
[jira] [Commented] (PDFBOX-4590) Reading LaTeX files generate via
LuaTeX
[ https://issues.apache.org/jira/browse/PDFBOX-4590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16877950#comment-16877950 ]
Tilman Hausherr commented on PDFBOX-4590:
-----------------------------------------
I tried downloading them from
https://www.ctan.org/tex-archive/fonts/sourcecodepro/fonts
and then did
{code}
new PDType1Font(doc, new FileInputStream("SourceCodePro-BlackIt.pfb"));
{code}
and it worked. Please compare your fonts to these.
> 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
>
> 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,....
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org