You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/09/06 00:44:29 UTC

[jira] [Commented] (PDFBOX-2326) IllegalArgumentException: Use PDType1CFont for FontFile3

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

John Hewson commented on PDFBOX-2326:
-------------------------------------

{quote}
Should the FONT_FILE3 handling that is done in PDFontFactory.createFont() also be done for MM_TYPE1? I get a correct rendering with that solution.
{quote}

Yes, FontFile3 is also allowed for MMType1.

> IllegalArgumentException: Use PDType1CFont for FontFile3
> --------------------------------------------------------
>
>                 Key: PDFBOX-2326
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2326
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>              Labels: MMType1
>         Attachments: GWG090_Font-Support_x3.pdf
>
>
> I get this exception with the attached file:
> {code}
> Exception in thread "main" java.lang.IllegalArgumentException: Use PDType1CFont for FontFile3
> 	at org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:210)
> 	at org.apache.pdfbox.pdmodel.font.PDMMType1Font.<init>(PDMMType1Font.java:37)
> 	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:69)
> 	at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:171)
> 	at org.apache.pdfbox.util.PDFStreamEngine.getFonts(PDFStreamEngine.java:554)
> 	at org.apache.pdfbox.util.operator.text.SetTextFont.process(SetTextFont.java:48)
> {code}
> The troublesome font is the MMType1 font ExPontoMM.
> [~jahewson] Should the FONT_FILE3 handling that is done in PDFontFactory.createFont() also be done for MM_TYPE1? I get a correct rendering with that solution.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)