ICEpdf
  1. ICEpdf
  2. PDF-278

Not apply Jbig2 image mask correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3.4, 4.4, 5.0
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      The PDF in question contains a number of jbig2 image scans. The second page contains a jbig2 image that has the /imageMask property enabled. In such a case the image should be alter so that alpha values are applied to the image.

      As of currently we do nothing to handle the ImageMask.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case [5007000000FafB1]
        Hide
        Patrick Corless added a comment -

        Pushing to 4.3

        Show
        Patrick Corless added a comment - Pushing to 4.3
        Patrick Corless made changes -
        Fix Version/s 4.3 [ 10266 ]
        Fix Version/s 4.2.2 [ 10265 ]
        Hide
        Patrick Corless added a comment -

        More specifically the pdf file servlet_03.pdf uses a pencil masking which isn't handled at all in the Stream class.

        The spec states "...if ImageMask entry is true, the sample data shall be interpreted as a stencil mask for applying the graphics state's nonstroking colour parameters (see 8.9.6.2, "Stencil Masking")."

        This should be handles by other images types but can first be cut into the jbig2 decoder call. should be relatively straight forward to get this working.

        Show
        Patrick Corless added a comment - More specifically the pdf file servlet_03.pdf uses a pencil masking which isn't handled at all in the Stream class. The spec states "...if ImageMask entry is true, the sample data shall be interpreted as a stencil mask for applying the graphics state's nonstroking colour parameters (see 8.9.6.2, "Stencil Masking")." This should be handles by other images types but can first be cut into the jbig2 decoder call. should be relatively straight forward to get this working.
        Patrick Corless made changes -
        Fix Version/s 5.0 [ 10314 ]
        Fix Version/s 4.3 [ 10266 ]
        Hide
        Patrick Corless added a comment -

        This masking issue appears to be fixed on 4.3.3 branch as well as the 5.0 trunk. Closing

        Show
        Patrick Corless added a comment - This masking issue appears to be fixed on 4.3.3 branch as well as the 5.0 trunk. Closing
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.4 [ 10670 ]
        Fix Version/s 4.3.4 [ 10341 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: