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/12/05 07:59:14 UTC

[jira] [Resolved] (PDFBOX-2543) ClassCastException in PDFontDescriptor.getFontFile2

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

Tilman Hausherr resolved PDFBOX-2543.
-------------------------------------
    Resolution: Fixed

> ClassCastException in PDFontDescriptor.getFontFile2
> ---------------------------------------------------
>
>                 Key: PDFBOX-2543
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2543
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: 536453.pdf
>
>
> {code}
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary cannot be cast to org.apache.pdfbox.cos.COSStream
> 	at org.apache.pdfbox.pdmodel.font.PDFontDescriptor.getFontFile2(PDFontDescriptor.java:766)
> {code}
> The cause:
> {code}
> /FontFile2 880 0 R 
> >> 
> endobj
> 880 0 obj
> << 
> /Type /Font 
> /Name /Helv 
> /BaseFont /Helvetica 
> /Subtype /Type1 
> /Encoding 881 0 R 
> >> 
> endobj
> {code}
> I will change all three getFontFile methods to check for the correct class instance instead of for null.



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