[
https://issues.apache.org/jira/browse/PDFBOX-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14538579#comment-14538579
]
John Hewson edited comment on PDFBOX-2794 at 5/11/15 8:20 PM:
--------------------------------------------------------------
Looks like this shares some similarity with the Type 3 problem from
PDFBOX-2299. I see this code in DictionaryEncoding:
{code}
//FIXME, see PDFBOX-2299, happens with Type3 fonts of the isartor test suite
// throw new IllegalArgumentException("Built-in Encoding required for symbolic
font");
{code}
Both sections of code make the assumption that a Type 3 font should have an
underlying encoding, which isn't true - in fact, the Differences array defines
the complete encoding.
was (Author: jahewson):
Looks like this shares some similarity with the Type 3 problem from
PDFBOX-2299. I see this code in DictionaryEncoding:
//FIXME, see PDFBOX-2299, happens with Type3 fonts of the isartor test suite
// throw new IllegalArgumentException("Built-in Encoding required for
symbolic font");
Both sections of code make the assumption that a Type 3 font should have an
underlying encoding, which isn't true - in fact, the Differences array defines
the complete encoding.
> UnsupportedOperationException: not supported for Type 3 fonts
> -------------------------------------------------------------
>
> Key: PDFBOX-2794
> URL: https://issues.apache.org/jira/browse/PDFBOX-2794
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Labels: type3
> Attachments: PDFBOX-2794.pdf
>
>
> As reported by Manfred P. on the user mailing list:
> {code}
> Exception in thread "main" java.lang.UnsupportedOperationException: not
> supported for Type 3 fonts
> at
> org.apache.pdfbox.pdmodel.font.PDType3Font.readEncodingFromFont(PDType3Font.java:68)
> at
> org.apache.pdfbox.pdmodel.font.PDSimpleFont.readEncoding(PDSimpleFont.java:118)
> at
> org.apache.pdfbox.pdmodel.font.PDType3Font.<init>(PDType3Font.java:56)
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:79)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]