ICEpdf
  1. ICEpdf
  2. PDF-761

Page is rendered completely black

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0.1
    • Component/s: Imaging
    • Labels:
      None
    • Environment:
      All
    • Support Case References:
      Show
      Support Case #12840 - https://icesoft.my.salesforce.com/5007000000caM2S Support Case #13269 - https://icesoft.my.salesforce.com/50070000010b8yg Support Case #13293 - https://icesoft.my.salesforce.com/50070000011sx7w Support Case #13530 - https://icesoft.my.salesforce.com/5007000001KrMkP
    • Workaround Description:
      Hide
      Previous work around was -Dorg.icepdf.core.ccittfax.jai=true. But it is now preferred to use org.icepdf.core.ccittfax.jai=false which is also the default value. The Tiff code will now try it's best to load the image using our decode method and if necessary will fallback to JAI loading.
      Show
      Previous work around was -Dorg.icepdf.core.ccittfax.jai=true. But it is now preferred to use org.icepdf.core.ccittfax.jai=false which is also the default value. The Tiff code will now try it's best to load the image using our decode method and if necessary will fallback to JAI loading.

      Description

      With the provided PDF file, the page is rendered completely black. Prior to the 5.0.5 release it was rendered as black (white). There are no obvious exceptions thrown in the logs to help diagnose the issue.

        Activity

        Arran Mccullough created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.0.7 [ 11470 ]
        Patrick Corless made changes -
        Fix Version/s 5.1 [ 10675 ]
        Fix Version/s 5.0.7 [ 11470 ]
        Patrick Corless made changes -
        Workaround Description -Dorg.icepdf.core.ccittfax.jai=true
        Patrick Corless made changes -
        Affects Version/s 5.2 [ 10970 ]
        Affects Version/s 5.0.5 [ 11373 ]
        Affects Version/s 5.0.6_P01 [ 11471 ]
        Patrick Corless made changes -
        Fix Version/s 5.2 [ 10970 ]
        Fix Version/s 5.1 [ 10675 ]
        Arran Mccullough made changes -
        Patrick Corless made changes -
        Fix Version/s 5.3 [ 12070 ]
        Fix Version/s 5.2 [ 10970 ]
        Patrick Corless made changes -
        Component/s Imaging [ 10970 ]
        Component/s Core/Parsing [ 10022 ]
        Hide
        Patrick Corless added a comment -

        Fax decode issue.

        Show
        Patrick Corless added a comment - Fax decode issue.
        Patrick Corless made changes -
        Fix Version/s 6.0.1 [ 12071 ]
        Fix Version/s 6.1 [ 12070 ]
        Hide
        Patrick Corless added a comment -

        Quite a few issue in the attached support cases but in general we are looking at failure of JAI handling code to try different CCITTFax decode methods. Most of the files in question don't include a k value or specify the wrong k value which defines CCITTFax decode type.

        After making a small exception handling tweak as well as combining fixes from PDF-642 and PDF-933 the PDF all load correctly now.

        Show
        Patrick Corless added a comment - Quite a few issue in the attached support cases but in general we are looking at failure of JAI handling code to try different CCITTFax decode methods. Most of the files in question don't include a k value or specify the wrong k value which defines CCITTFax decode type. After making a small exception handling tweak as well as combining fixes from PDF-642 and PDF-933 the PDF all load correctly now.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Workaround Description -Dorg.icepdf.core.ccittfax.jai=true Previous work around was -Dorg.icepdf.core.ccittfax.jai=true. But it is now preferred to use org.icepdf.core.ccittfax.jai=false which is also the default value. The Tiff code will now try it's best to load the image using our decode method and if necessary will fallback to JAI loading.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46211 Wed Nov 11 15:08:39 MST 2015 patrick.corless PDF-761 major changes to how we load CCITTFax images, addition of fallback code to make decoding more reliable.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/filters/CCITTFax.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/filters/CCITTFaxDecoder.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46212 Wed Nov 11 15:09:00 MST 2015 patrick.corless PDF-761 major changes to how we load CCITTFax images, addition of fallback code to make decoding more reliable.
        Files Changed
        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/ImageStream.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/filters/CCITTFaxDecoder.java
        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: