Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.2
-
Fix Version/s: 6.1.3
-
Component/s: Core/Rendering
-
Labels:None
-
Environment:All
-
Support Case References:Support Case #13852 - https://icesoft.my.salesforce.com/5007000001dq9Fw
-
Workaround Description:For 6.1.2 and earlier, -Dorg.icepdf.core.text.optimized=false.
Description
With the provided PDF file, the text of the PDF is not rendered. A header image is rendered fine but not the content of the PDF.
The PDF uses Type 3 fonts which in this case have an incorrect fontBBox entry with zero dimension. We use this data for optimized font painting, which looks a the current clip to see if the glyph's bbox intersects. In this case the height of the calculated glyphs bounds is zero and the intersection test fails.
I've added code to handle the corner case where a font's bbox height is zero and sets it to one. This fixes the render issue and the workaround is no longer needed.