[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Kabir Soneja (Jira)


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

Kabir Soneja commented on PDFBOX-5827:
--

Got it, thanks [~tilman] 

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: StackOverflowError
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.ap

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Kabir Soneja (Jira)


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

Kabir Soneja commented on PDFBOX-5827:
--

Sounds good, thanks for helping with this [~tilman] 

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: StackOverflowError
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.j

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5827:
-

No, there are no fixed schedules. Be patient.

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: StackOverflowError
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.ja

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Kabir Soneja (Jira)


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

Kabir Soneja commented on PDFBOX-5827:
--

Thanks [~tilman] Is there an approximate month or timeline when the version 
2.0.32 will be released?

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: StackOverflowError
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfComposite

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5827:
-

The changes will be in version 2.0.32 when released (probably in a few months). 
Your version 2.0.27 is the past. The snapshot is for you to test or to use if 
you can't wait until 2.0.32.

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: StackOverflowError
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Kabir Soneja (Jira)


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

Kabir Soneja commented on PDFBOX-5827:
--

Got it [~tilman] makes sense. Will this snapshot version be realized or be 
available in version 2.0.27 that I am using?

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: StackOverflowError
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbo

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5827:
-

Thanks for the feedback. Yes these exceptions will still happen because your 
file has these problems, but PDFBox usually tries to work around these 
problems, sometimes using a different font.

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: StackOverflowError
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fon

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Kabir Soneja (Jira)


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

Kabir Soneja commented on PDFBOX-5827:
--

Thanks [~tilman] just tried with the jar you mentioned and it works now. The 
pdf is converted to an image but I still see the exception but it is not fatal


{code:java}
May 23, 2024 10:40:58 AM org.apache.fontbox.ttf.OS2WindowsMetricsTable 
readWARNING: Could not read all expected parts of version >= 1, setting version 
to 0java.io.EOFException at 
org.apache.fontbox.ttf.TTFDataStream.readUnsignedInt(TTFDataStream.java:153) at 
org.apache.fontbox.ttf.OS2WindowsMetricsTable.read(OS2WindowsMetricsTable.java:843)
  at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:361) at 
org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:188) at 
org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:165)   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:110)   at 
org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:73)at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:112)   
 at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:65) at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:139)
at org.apache.pdfbox.pdmodel.font.PDType0Font.(PDType0Font.java:203)  
at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:97)  
 at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:171)  at 
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:959)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:532)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:507)
  at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:151)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:292) 
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)
at 
org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:258)
 at org.apache.pdfbox.tools.PDFToImage.main(PDFToImage.java:264) at 
org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:93)
May 23, 2024 10:40:58 AM org.apache.fontbox.ttf.OS2WindowsMetricsTable 
readWARNING: Could not read all expected parts of version >= 1, setting version 
to 0java.io.EOFException at 
org.apache.fontbox.ttf.TTFDataStream.readUnsignedInt(TTFDataStream.java:153) at 
org.apache.fontbox.ttf.OS2WindowsMetricsTable.read(OS2WindowsMetricsTable.java:843)
  at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:361) at 
org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:188) at 
org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:165)   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:110)   at 
org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:73)at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:112)   
 at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:65) at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:139)
at org.apache.pdfbox.pdmodel.font.PDType0Font.(PDType0Font.java:203)  
at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:97)  
 at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:171)  at 
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:959)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:532)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:507)
  at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:151)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:292) 
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)
at 
org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:258)
 at org.apache.pdfbox.tools.PDFToImage.main(PDFToImage.java:264) at 
org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:93)
May 23, 2024 10:40:58 AM org.apache.fontbox.ttf.GlyfComposit

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5827:
-

Please download the jar at the bottom of 
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.32-SNAPSHOT/
and try that one with your file(s).

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Priority: Major
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfComposi

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread ASF subversion and git services (Jira)


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

ASF subversion and git services commented on PDFBOX-5827:
-

Commit 1917926 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1917926 ]

PDFBOX-5827: avoid stack overflow by tracking the depth up to 
maxp.MaxComponentDepth

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Priority: Major
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
> 

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread ASF subversion and git services (Jira)


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

ASF subversion and git services commented on PDFBOX-5827:
-

Commit 1917927 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1917927 ]

PDFBOX-5827: avoid stack overflow by tracking the depth up to 
maxp.MaxComponentDepth

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Priority: Major
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
> 

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread ASF subversion and git services (Jira)


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

ASF subversion and git services commented on PDFBOX-5827:
-

Commit 1917925 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1917925 ]

PDFBOX-5827: avoid stack overflow by tracking the depth up to 
maxp.MaxComponentDepth

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Priority: Major
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5827:
-

It turns out that the "multiple changes" are easier than I thought, and the API 
doesn't change because all calls are package scoped. I'm gonna commit the 
changes soon.

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
>Reporter: Kabir Soneja
>Priority: Major
> Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescrip

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-23 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5827:
-

The likely cause is a composite glyph that goes into an endless recursion, e.g. 
because of a self-reference. The good news is that I have a font file with the 
same problem, the bad news is that protecting against this problem will require 
multiple changes in fontbox (gather {{maxComponentDepth}} and keep the current 
depth in 5 calls). And even after that, the file might still fail, or look bad.

https://learn.microsoft.com/en-us/typography/opentype/spec/maxp


> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>  Components: FontBox
>Affects Versions: 2.0.27, 2.0.31
>Reporter: Kabir Soneja
>Priority: Major
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.in

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-22 Thread Kabir Soneja (Jira)


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

Kabir Soneja commented on PDFBOX-5827:
--

Thanks for helping with this [~tilman].

I tried without fontbox and with fontbox 2.0.31 but still running into the same 
exception. Unfortunately, I won't be able to share the PDF. Sharing the full 
exception and stack trace:
Here is the full exception:


{code:java}
java -cp "pdfbox-app-2.0.27.jar:lib/*" org.apache.pdfbox.tools.PDFBox 
PDFToImage fontbox-exception-pdf.pdf -imageType png -dpi 100
May 22, 2024 12:52:38 PM org.apache.fontbox.ttf.OS2WindowsMetricsTable 
readWARNING: Could not read all expected parts of version >= 1, setting version 
to 0java.io.EOFException at 
org.apache.fontbox.ttf.TTFDataStream.readUnsignedInt(TTFDataStream.java:150) at 
org.apache.fontbox.ttf.OS2WindowsMetricsTable.read(OS2WindowsMetricsTable.java:843)
  at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:361) at 
org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:188) at 
org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:165)   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:110)   at 
org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:73)at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:112)   
 at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:65) at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:139)
at org.apache.pdfbox.pdmodel.font.PDType0Font.(PDType0Font.java:203)  
at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:97)  
 at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)  at 
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)
  at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284) 
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)
at 
org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:258)
 at org.apache.pdfbox.tools.PDFToImage.main(PDFToImage.java:262) at 
org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:89)
May 22, 2024 12:52:38 PM org.apache.fontbox.ttf.OS2WindowsMetricsTable 
readWARNING: Could not read all expected parts of version >= 1, setting version 
to 0java.io.EOFException at 
org.apache.fontbox.ttf.TTFDataStream.readUnsignedInt(TTFDataStream.java:150) at 
org.apache.fontbox.ttf.OS2WindowsMetricsTable.read(OS2WindowsMetricsTable.java:843)
  at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:361) at 
org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:188) at 
org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:165)   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:110)   at 
org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:73)at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:112)   
 at 
org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:65) at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:139)
at org.apache.pdfbox.pdmodel.font.PDType0Font.(PDType0Font.java:203)  
at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:97)  
 at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)  at 
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:966)
at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:541)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:516)
  at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:155)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:284) 
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:355)
at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:272)
at 
org.apache.pdfbox.rendering.PDFRende

[jira] [Commented] (PDFBOX-5827) Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs

2024-05-22 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5827:
-

Please retest with 2.0.31 and attach the PDF. You didn't specify what exception 
but I guess it's a stack overflow?

> Multiple exceptions coming from org.apache.fontbox.ttf for different PDFs
> -
>
> Key: PDFBOX-5827
> URL: https://issues.apache.org/jira/browse/PDFBOX-5827
> Project: PDFBox
>  Issue Type: Bug
>Reporter: Kabir Soneja
>Priority: Major
>
> Hi,
> I am using PDFBox CLI version 2.0.27 to convert PDFs to images. For certain 
> PDFs, I am running into an exception while converting PDF to Image. There are 
> multiple exceptions coming from org.apache.fontbox.ttf.
> Sample Exception:
> {code:java}
> at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData(GlyphData.java:65)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyphData(GlyphTable.java:219)
>     at org.apache.fontbox.ttf.GlyphTable.getGlyph(GlyphTable.java:199)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.initDescriptions(GlyfCompositeDescript.java:292)
>     at 
> org.apache.fontbox.ttf.GlyfCompositeDescript.(GlyfCompositeDescript.java:80)
>     at org.apache.fontbox.ttf.GlyphData.initData