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/05 21:08:28 UTC

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

Tilman Hausherr created PDFBOX-2326:
---------------------------------------

             Summary: 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


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)