Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDFBox TrueTypeFont exceptions #29

Closed
aaccomazzi opened this issue Dec 1, 2016 · 0 comments
Closed

PDFBox TrueTypeFont exceptions #29

aaccomazzi opened this issue Dec 1, 2016 · 0 comments
Assignees

Comments

@aaccomazzi
Copy link
Member

A number of exceptions appear in the PDF extraction log file which indicate a bug in reading true font files. The issue is discussed here: https://issues.apache.org/jira/browse/PDFBOX-2428

We should try to see if a PDFBox upgrade fixes the problem for us.

2016-12-01 12:03:49 ERROR TrueTypeFont:286 - An error occured when reading table hmtx
java.io.EOFException
        at org.apache.fontbox.ttf.MemoryTTFDataStream.readSignedShort(MemoryTTFDataStream.java:139)
        at org.apache.fontbox.ttf.HorizontalMetricsTable.initData(HorizontalMetricsTable.java:62)
        at org.apache.fontbox.ttf.TrueTypeFont.initializeTable(TrueTypeFont.java:280)
        at org.apache.fontbox.ttf.TrueTypeFont.getHorizontalMetrics(TrueTypeFont.java:204)
        at org.apache.fontbox.ttf.TrueTypeFont.getAdvanceWidth(TrueTypeFont.java:346)
        at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getFontWidth(PDTrueTypeFont.java:677)
        at org.apache.pdfbox.pdmodel.font.PDSimpleFont.getFontWidth(PDSimpleFont.java:231)
        at org.apache.pdfbox.pdmodel.font.PDSimpleFont.getSpaceWidth(PDSimpleFont.java:533)
        at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:355)
        at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
        at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:557)
        at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:268)
        at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:235)
        at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:215)
        at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:460)
        at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:385)
        at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:344)
        at org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:275)
        at org.adslabs.adsfulltext.PDFExtract.extract(PDFExtract.java:112)
        at org.adslabs.adsfulltext.PDFExtractList.f(PDFExtractList.java:53)
        at org.adslabs.adsfulltext.Worker.process(Worker.java:144)
        at org.adslabs.adsfulltext.Worker.subscribe(Worker.java:187)
        at org.adslabs.adsfulltext.Worker.run(Worker.java:279)
        at org.adslabs.adsfulltext.App.main(App.java:82)
@marblestation marblestation self-assigned this Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants