pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arjohn Kampman (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (PDFBOX-681) ClassCastException in PDTrueTypeFont.ensureFontDescriptor()
Date Wed, 07 Apr 2010 20:54:33 GMT

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

Arjohn Kampman edited comment on PDFBOX-681 at 4/7/10 8:53 PM:
---------------------------------------------------------------

We're also using it for rendering, but I didn't test that part yet. Thanks for the uber quick
fix :-)

      was (Author: arjohn):
    That's correct, text extraction only. Thanks for the uber quick fix :-)
  
> ClassCastException in PDTrueTypeFont.ensureFontDescriptor()
> -----------------------------------------------------------
>
>                 Key: PDFBOX-681
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-681
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0
>            Reporter: Arjohn Kampman
>         Attachments: PDTrueTypeFont.patch
>
>
> We're seeing an issue that seems to have been introduced in pdfbox 1.1.0:
> java.lang.ClassCastException: org.apache.pdfbox.pdmodel.font.PDFontDescriptorAFM cannot
be cast to org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.ensureFontDescriptor(PDTrueTypeFont.java:167)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:117)
> 	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:140)
> 	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:76)
> 	at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:115)
> 	at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:225)
> 	at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
> 	at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:367)
> 	at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:291)
> 	at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:247)
> 	at org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:180)
> 	...
> So far, all affected pdf files are confidential. I'll add a test file later if I find
one that can be made public. Hope the stack trace is sufficient though.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message