ICEpdf
  1. ICEpdf
  2. PDF-197

Image on page renders as a black box

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1.1
    • Component/s: Viewer RI
    • Labels:
      None
    • Environment:
      Win

      Description

      An image on a pdf page renders as a black box. This image should be displayed over a background image.
      1. 9780511757822pre_pi-vi_CBO.pdf
        1.06 MB
        Arran Mccullough
      2. error image on background image.doc
        565 kB
        Arran Mccullough

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment error image on background image.doc [ 12480 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000D4Rhu]
        Arran Mccullough made changes -
        Attachment 9780511757822pre_pi-vi_CBO.pdf [ 12485 ]
        Hide
        Patrick Corless added a comment -

        Given this one a pretty close look, basically it's a JAI failure when decoding CCITTfax group 2 formate. I've been looking at alternative libraries to decode the image in question but I keep running into a fraction byte problem on this file and a few others.

        Where dealing with a 1 component, 1 bit colour definitions. So in our example that s 2050x1x1 which is 2050. The factional bit formula is 2050 & 0x7 = 2. However the only way to get the image to show up correctly is to use a factional bit of 6 which I can't seem to figure out why this is the case. The only thing I can assume is that the width of the image is incorrectly stated.

        Show
        Patrick Corless added a comment - Given this one a pretty close look, basically it's a JAI failure when decoding CCITTfax group 2 formate. I've been looking at alternative libraries to decode the image in question but I keep running into a fraction byte problem on this file and a few others. Where dealing with a 1 component, 1 bit colour definitions. So in our example that s 2050x1x1 which is 2050. The factional bit formula is 2050 & 0x7 = 2. However the only way to get the image to show up correctly is to use a factional bit of 6 which I can't seem to figure out why this is the case. The only thing I can assume is that the width of the image is incorrectly stated.
        Hide
        Patrick Corless added a comment -

        Should take another look the zero padding input stream, might help with the extra bytes.

        Show
        Patrick Corless added a comment - Should take another look the zero padding input stream, might help with the extra bytes.
        Arran Mccullough made changes -
        Salesforce Case [5007000000D4Rhu] [5007000000D4Rhu, 5007000000D5bMq]
        Ken Fyten made changes -
        Fix Version/s 4.2 [ 10243 ]
        Patrick Corless made changes -
        Fix Version/s 4.1.1 [ 10244 ]
        Fix Version/s 4.2 [ 10243 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #22527 Wed Oct 06 06:52:47 MDT 2010 patrick.corless PDF-197 reworked how we handle CCITTFax images, generally speaking this simplifies things and allows give us a wider range of render types. We no longer need JAI on the class path to handle the CCITTfax rendering.
        Files Changed
        Commit graph ADD /icepdf/trunk/icepdf/licenses/CCITTFax_license.txt
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/filters/CCITTFax.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/filters/CCITTFaxDecoder.java
        Hide
        Patrick Corless added a comment -

        Took me a while to get all the pieces put together but I think we finally have full support for CCITT fax encoded images. The new code uses an open source library from intarsys consulting GmbH which is based on the work Sun did for JAI.

        The new setup makes sure that we apply the same generic images processing as we do for other decoded image stream. Another nice feature is that we no longer depend on the JAI jars for CCITT Fax T42D.

        Did quite a bit of testing and expect the final qa framework render to pass. With a little luck CCITT fax issue will be closed for good.

        Show
        Patrick Corless added a comment - Took me a while to get all the pieces put together but I think we finally have full support for CCITT fax encoded images. The new code uses an open source library from intarsys consulting GmbH which is based on the work Sun did for JAI. The new setup makes sure that we apply the same generic images processing as we do for other decoded image stream. Another nice feature is that we no longer depend on the JAI jars for CCITT Fax T42D. Did quite a bit of testing and expect the final qa framework render to pass. With a little luck CCITT fax issue will be closed for good.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: