ICEpdf
  1. ICEpdf
  2. PDF-387

Problems decoding some image types touched by PdfCompressor

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 5.0.0 alpha1, 5.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      any

      Description

      The attached forum PDF has a jbig2 image that isn't being correctly decoded. PdfCompressor is being used on the file and doing something to the image streams which is causing problems with ICEpdf's imaging core.

        

        Activity

        Patrick Corless created issue -
        Hide
        Mirco Piccin added a comment -

        Look here for the description of the issue
        http://jforum.icesoft.org/JForum/posts/list/20562.page

        Show
        Mirco Piccin added a comment - Look here for the description of the issue http://jforum.icesoft.org/JForum/posts/list/20562.page
        Mirco Piccin made changes -
        Field Original Value New Value
        Attachment SCN_20120229103440_001 (1).pdf [ 14159 ]
        Hide
        Patrick Corless added a comment -

        Another users has suggested using a google project that has a faster and improved implementation, http://jforum.icesoft.org/JForum/posts/list/20702.page

        http://code.google.com/p/jbig2-imageio/

        Show
        Patrick Corless added a comment - Another users has suggested using a google project that has a faster and improved implementation, http://jforum.icesoft.org/JForum/posts/list/20702.page http://code.google.com/p/jbig2-imageio/
        Patrick Corless made changes -
        Salesforce Case []
        Fix Version/s 4.3.3 [ 10333 ]
        Fix Version/s 5.0 [ 10314 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000NGkLX]
        Hide
        Patrick Corless added a comment -

        Pushing out to a major release as switching to a new release will need to happen on a major release.

        Show
        Patrick Corless added a comment - Pushing out to a major release as switching to a new release will need to happen on a major release.
        Patrick Corless made changes -
        Fix Version/s 4.5 [ 10342 ]
        Fix Version/s 4.3.3 [ 10333 ]
        Hide
        Patrick Corless added a comment - - edited

        Fix Version/s: 4.3.4
        (was: 4.5)
        Resolution: Fixed
        This issue appears to be fixed in 4.3.3 and 4.3.4. Closing.

        Show
        Patrick Corless added a comment - - edited Fix Version/s: 4.3.4 (was: 4.5) Resolution: Fixed This issue appears to be fixed in 4.3.3 and 4.3.4. Closing.
        Hide
        Patrick Corless added a comment - - edited

        The PDF attached to support case render fine but the PDF sample attached to the form is still problematic. I will have to investigate updating our jbig2 library.

        Show
        Patrick Corless added a comment - - edited The PDF attached to support case render fine but the PDF sample attached to the form is still problematic. I will have to investigate updating our jbig2 library.
        Migration made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Migration made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Migration made changes -
        Fix Version/s 5.0 [ 10314 ]
        Patrick Corless made changes -
        Fix Version/s 4.5 [ 10342 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #32620 Wed Dec 05 10:56:02 MST 2012 patrick.corless PDF-387 initial checkin of ImageStream refactoring to allow for the common application of masks and smasks.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/InlineImageStreamReference.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Resources.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Thumbnail.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/ImageStreamReference.java
        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/Stream.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/ScaledImageReference.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #32642 Thu Dec 06 13:14:44 MST 2012 patrick.corless PDF-387 major rework of how we apply image masks and smaks to images. An attempt was made to normalize the process instead of applying special cases to each image format type.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/ContentParser.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/OptionalContent.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/OptionalContentMembership.java
        Hide
        Patrick Corless added a comment -

        I assumed that there was something wrong with the jbig2 handler but after substituting our code with another I got the same result. I dug a little deeper an it turned out the issue was related to masking which turned into 4 days of refactoring our image handling code.

        The end result is that we can no display the PDF correctly as well other PDF encoded similarly using LuraDocument PDF Compressor. One more note is that I also added optional content support for xform objects.

        Show
        Patrick Corless added a comment - I assumed that there was something wrong with the jbig2 handler but after substituting our code with another I got the same result. I dug a little deeper an it turned out the issue was related to masking which turned into 4 days of refactoring our image handling code. The end result is that we can no display the PDF correctly as well other PDF encoded similarly using LuraDocument PDF Compressor. One more note is that I also added optional content support for xform objects.
        Patrick Corless made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #32709 Mon Dec 10 14:25:32 MST 2012 patrick.corless PDF-387 updated Cached Images to scale images on an out of memory exception and tweak how re are parsing inline images because of a few regressions.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/content/Lexer.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/CachedImageReference.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/ImageReference.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #32732 Tue Dec 11 08:04:29 MST 2012 patrick.corless PDF-387 updated to parsing inline images because of a few regressions.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/content/Lexer.java
        Patrick Corless made changes -
        Fix Version/s 5.0.0 alpha1 [ 10676 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: