Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.5
-
Fix Version/s: 5.0.6
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:All
-
Support Case References:Support Case #12760 - https://icesoft.my.salesforce.com/5007000000bCk9R
Description
With the provided PDF the fonts on the page are rendered incorrectly and look to be random characters. The following is logged for the font substitution:
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: couriernewpsmt family: Plain for: CourierNew C:\Windows\Fonts\cour.ttf
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found type1 font: CourierNewPSMT for named font Courier
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: couriernewps-boldmt family: Bold for: CourierNew,Bold C:\Windows\Fonts\courbd.ttf
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found type1 font: CourierNewPS-BoldMT for named font Courier-Bold
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: couriernewps-boldmt family: Bold for: CourierNew,Bold C:\Windows\Fonts\courbd.ttf
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found type1 font: CourierNewPS-BoldMT for named font Courier-Bold
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: couriernewpsmt family: Plain for: CourierNew C:\Windows\Fonts\cour.ttf
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found type1 font: CourierNewPSMT for named font Courier
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: couriernewps-boldmt family: Bold for: CourierNew,Bold C:\Windows\Fonts\courbd.ttf
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found type1 font: CourierNewPS-BoldMT for named font Courier-Bold
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager findFont
FINER: ----> Found font: couriernewps-boldmt family: Bold for: CourierNew,Bold C:\Windows\Fonts\courbd.ttf
Apr 02, 2014 11:01:36 AM org.icepdf.core.pobjects.fonts.FontManager getInstance
FINE: Font Substitution: Found type1 font: CourierNewPS-BoldMT for named font Courier-Bold
Updated the Font class initialization object to take into the account that the differences list could be References object and thus we fetch and parse the respective list notation.
The PDF now renders correctly.