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] [Comment Edited] (PDFBOX-4469) Exception in thread "main" java.io.EOFException when load a TTF file
Date Thu, 21 Feb 2019 04:46:00 GMT

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

Tilman Hausherr edited comment on PDFBOX-4469 at 2/21/19 4:45 AM:
------------------------------------------------------------------

It should work with PDFBox; I tested opening the file from my W7 system, and just now also
on the one from my W10 system. It's the GSUB segment that is broken on your file. I don't
know if how this is used in ordinary work.

Try finding that font elsewhere.


was (Author: tilman):
It should work with PDFBox; I tested opening the file on my W7 system, and just now also on
the W10 system. It's the GSUB segment that is broken on your file. I don't know if how this
is used in ordinary work.

Try finding that font elsewhere.

> Exception in thread "main" java.io.EOFException when load a TTF file
> --------------------------------------------------------------------
>
>                 Key: PDFBOX-4469
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4469
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.13
>            Reporter: berylbai
>            Priority: Critical
>         Attachments: simsumb.ttf
>
>
> Exception in thread "main" java.io.EOFException
>  at java.io.RandomAccessFile.readUnsignedShort(RandomAccessFile.java:745)
>  at org.apache.fontbox.ttf.RAFDataStream.readUnsignedShort(RAFDataStream.java:128)
>  at org.apache.fontbox.ttf.GlyphSubstitutionTable.readLangSysTable(GlyphSubstitutionTable.java:150)
>  at org.apache.fontbox.ttf.GlyphSubstitutionTable.readScriptTable(GlyphSubstitutionTable.java:129)
>  at org.apache.fontbox.ttf.GlyphSubstitutionTable.readScriptList(GlyphSubstitutionTable.java:98)
>  at org.apache.fontbox.ttf.GlyphSubstitutionTable.read(GlyphSubstitutionTable.java:78)
>  at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:353)
>  at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:173)
>  at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:150)
>  at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:87)
>  at org.apache.pdfbox.pdmodel.font.PDType0Font.load(PDType0Font.java:66)
>  at pdfboxTest.Test.main(Test.java:69)
>  
> PDFont font = PDType0Font.load(doc, new File("simsumb.ttf"));



--
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


Mime
View raw message