ICEpdf
  1. ICEpdf
  2. PDF-439

Text is displayed as black squares since IcePDF v4.1.1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.2
    • Fix Version/s: 4.3.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEpdf PRO 4.1.1 +, Java 1.6.025
    • Workaround Exists:
      Yes
    • Workaround Description:
      Downgrade version of the ICEpdf library to 4.0.1

      Description

      Attached PDF is displayed correct with IcePdf PRO v4.0.1, but renders with black squares if version 4.1.1 and higher of the library is used.

      Screenshots attached.

      1. Polzin.pdf
        156 kB
        Evgheni Sadovoi
      1. screenshot-2.jpg
        141 kB
      2. screenshot-1.jpg
        122 kB

        Issue Links

          Activity

          Hide
          Patrick Corless added a comment -

          Took a quick look and the issue is related to pattern painting. The black boxes are painted behind the text using a tilling pattern paint. Its the paint that is causing the problem. Because the pattern paint is coming out black instead of white the black text is no longer visible. Should be able to fix this for 4.3.3.

          Show
          Patrick Corless added a comment - Took a quick look and the issue is related to pattern painting. The black boxes are painted behind the text using a tilling pattern paint. Its the paint that is causing the problem. Because the pattern paint is coming out black instead of white the black text is no longer visible. Should be able to fix this for 4.3.3.
          Hide
          Patrick Corless added a comment -

          Traced the issue down to the addition of tiling support. There was some old code that would only paint the tile if the tile was bigger than 1x1. Quite a bit of work has been done to tiling and I don't think this rule is valid any more. The else for this 1x1 or greater case was to use the most recent fill colour which in this case was black. The update appears to fix the PDF in question. the the white png tile is now painted correctly.

          Show
          Patrick Corless added a comment - Traced the issue down to the addition of tiling support. There was some old code that would only paint the tile if the tile was bigger than 1x1. Quite a bit of work has been done to tiling and I don't think this rule is valid any more. The else for this 1x1 or greater case was to use the most recent fill colour which in this case was black. The update appears to fix the PDF in question. the the white png tile is now painted correctly.

            People

            • Assignee:
              Patrick Corless
              Reporter:
              Evgheni Sadovoi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: