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

        Hide
        Patrick Corless added a comment -

        Pushing to 4.3

        Show
        Patrick Corless added a comment - Pushing to 4.3
        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.
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: