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.
Activity
Arran Mccullough
created issue -
Patrick Corless
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 6.1.3 [ 13086 ] |
Patrick Corless
made changes -
Workaround Description | For 6.1.2 and earlier, -Dorg.icepdf.core.text.optimized=false. |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
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.