You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/06/14 08:08:00 UTC

[jira] [Commented] (PDFBOX-4880) NullPointerException in TrueTypeEmbedder.createFontDescriptor() with OCR-B font

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

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

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

PDFBOX-4880: avoid NPE

> NullPointerException in TrueTypeEmbedder.createFontDescriptor() with OCR-B font
> -------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4880
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4880
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.20
>            Reporter: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.21, 3.0.0 PDFBox
>
>
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.createFontDescriptor(TrueTypeEmbedder.java:190)
> 	at org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.<init>(TrueTypeEmbedder.java:83)
> 	at org.apache.pdfbox.pdmodel.font.PDCIDFontType2Embedder.<init>(PDCIDFontType2Embedder.java:76)
> 	at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:220)
> 	at org.apache.pdfbox.pdmodel.font.PDType0Font.load(PDType0Font.java:67)
> {noformat}
> when loading the font at 
> https://www.dafontfree.net/freefonts-ocrb-f151774.htm
> The font has no os2 table. We should throw an IOException instead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org