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

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

     [ https://issues.apache.org/jira/browse/PDFBOX-2326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr resolved PDFBOX-2326.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0
         Assignee: Tilman Hausherr

> 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
>            Assignee: Tilman Hausherr
>              Labels: MMType1
>             Fix For: 2.0.0
>
>         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)