Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.5
-
None
-
Operating Systems: Windows
JDK: 1.8
Description
Some Latin Fonts cannot be embedded into PDF document.
How to repeat
1. Get FOP from trunk@1811797
2. Get Font from the attachment
3. Use my config file and generate the PDF, there is no error reported.
4. Open the PDF file in Acro-Reader, it will report the "cannot extract the embedded font" error.
CFFParser@FuturaStd-Book.fo
java.io.IOException: illegal offset value 2949166 in CFF font at org.apache.fontbox.cff.CFFParser.readIndexDataOffsets(CFFParser.java:188) at org.apache.fontbox.cff.CFFParser.readIndexData(CFFParser.java:197) at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:460) at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:145)
GillSansStd.fo and TimesNewRomanMTStd-Bold.fo detects no Error in CFFParser.
I attached the result of checking the CFF structure in Acrobat.
GillSansStd_Acrobat.png
TimesNewRomanMTStd-Bold_Acrobat.png
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-5033 CFF FontParser exits with illegal offset in font
- Closed