Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.2
    • Fix Version/s: 6.1.3
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      All

      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.
        Hide
        Patrick Corless added a comment -

        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.

        Show
        Patrick Corless added a comment - 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.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: