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-1.jpg
        122 kB
      2. screenshot-2.jpg
        141 kB

        Issue Links

          Activity

          Evgheni Sadovoi created issue -
          Evgheni Sadovoi made changes -
          Field Original Value New Value
          Attachment screenshot-1.jpg [ 14501 ]
          Attachment screenshot-2.jpg [ 14502 ]
          Attachment Polzin.pdf [ 14503 ]
          Evgheni Sadovoi made changes -
          Salesforce Case [5007000000MGkv1]
          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.
          Patrick Corless made changes -
          Fix Version/s 4.3.3 [ 10333 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #30194 Tue Jul 24 09:46:23 MDT 2012 patrick.corless PDF-439 updated tiling pattern paint to paint cells that are 1x1 and larger.
          Files Changed
          Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/ContentParser.java
          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.
          Patrick Corless made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Patrick Corless made changes -
          Link This issue blocks PDF-496 [ PDF-496 ]
          Patrick Corless made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: