[
https://issues.apache.org/jira/browse/PDFBOX-3344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr updated PDFBOX-3344:
------------------------------------
Attachment: fontfile2.ttf
According to windows, this file (fontfile2.ttf, from
{{Root/Pages/Kids/\[0]/Resources/Font/F2/DescendantFonts/\[0]/FontDescriptor/FontFile2}})
is an opentype font with postscript layout (i.e. not truetype). A look in the
hex viewer shows "CFF".
However per the PDF spec, /Fontfile2 is to be used like this: "TrueType font
program, as described in the TrueType Reference Manual. This entry may appear
in the font descriptor for a TrueType font dictionary or (PDF 1.3) for a
CIDFontType2CIDFont dictionary."
> 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
> Attachments: .pdfbox.cache, etichette.pdf, fontfile2.ttf,
> helvetica.pdf, screenshot_1.png, screenshot_2_pdfdebugger.png,
> screenshot_3_chrome.png, screenshot_4_acrobat.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: [email protected]
For additional commands, e-mail: [email protected]