Adrian Sandor created PDFBOX-4299:
-------------------------------------
Summary: ArrayIndexOutOfBoundsException in
CmapSubtable.processSubtype2
Key: PDFBOX-4299
URL: https://issues.apache.org/jira/browse/PDFBOX-4299
Project: PDFBox
Issue Type: Bug
Components: Rendering
Affects Versions: 2.0.11
Reporter: Adrian Sandor
I'm getting this exception when trying to render the first page of a pdf
document:
{noformat}
Exception in thread "JavaFX Application Thread"
java.lang.ArrayIndexOutOfBoundsException: -31593
at org.apache.fontbox.ttf.CmapSubtable.processSubtype2(CmapSubtable.java:524)
at org.apache.fontbox.ttf.CmapSubtable.initSubtable(CmapSubtable.java:96)
at org.apache.fontbox.ttf.CmapTable.read(CmapTable.java:84)
at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:349)
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.OTFParser.parse(OTFParser.java:79)
at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:27)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:106)
at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:73)
at
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:109)
at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:62)
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:125)
at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:192)
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
at
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:848)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:503)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:477)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:246)
at
org.apache.pdfbox.rendering.PDFRenderer.renderPageToGraphics(PDFRenderer.java:292)
at
org.apache.pdfbox.rendering.PDFRenderer.renderPageToGraphics(PDFRenderer.java:266)
at [my code]{noformat}
You can get the pdf file fromĀ
https://www.alliedworldinsurance.com/files/files/Motor%20Insurance%20claim%20form.pdf
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]