pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Sandor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4299) ArrayIndexOutOfBoundsException in CmapSubtable.processSubtype2
Date Tue, 28 Aug 2018 20:06:00 GMT

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

Adrian Sandor commented on PDFBOX-4299:
---------------------------------------

Awesome, thanks a lot!
I think the "% 65536" part from the lines you added might be redundant though.

And is there any chance you could provide corresponding source zips with the snapshot jars?

> ArrayIndexOutOfBoundsException in CmapSubtable.processSubtype2
> --------------------------------------------------------------
>
>                 Key: PDFBOX-4299
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4299
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox, Rendering
>    Affects Versions: 2.0.11
>            Reporter: Adrian Sandor
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.12, 3.0.0 PDFBox
>
>
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message