You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Esteban Nicolas Ruiz (JIRA)" <ji...@apache.org> on 2016/09/22 19:36:21 UTC

[jira] [Commented] (PDFBOX-3344) Caused by: java.lang.ClassCastException: org.apache.fontbox.ttf.OpenTypeFont can not be cast to org.apache.fontbox.cff.CFFFont

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

Esteban Nicolas Ruiz commented on PDFBOX-3344:
----------------------------------------------

I'm a newbie with font types and I have the same issue with a PDCIDFontType0 (this bug fix is for PDCIDFontType2). Should I open a new issue?. I have locally changed the code for PDCIDFontType0 and now it seems to be working (I'm not really sure if this is a PDFBox issue or a problem with my pdf/fonts).

> Caused by: java.lang.ClassCastException: org.apache.fontbox.ttf.OpenTypeFont can not be cast to org.apache.fontbox.cff.CFFFont
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3344
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3344
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.1
>            Reporter: 373 mch
>            Assignee: John Hewson
>             Fix For: 2.0.3, 2.1.0
>
>         Attachments: .pdfbox.cache, etichette.pdf, fontfile2.ttf, helvetica.pdf, screenshot_1.png, screenshot_2_pdfdebugger.png, screenshot_3_chrome.png, screenshot_4_acrobat.png, screenshot_5_ansi.png
>
>
> I'm getting this error opening a specific pdf
> {noformat}
> Caused by: java.lang.ClassCastException: org.apache.fontbox.ttf.OpenTypeFont can not be cast to org.apache.fontbox.cff.CFFFont
> {noformat}



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

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