ICEpdf
  1. ICEpdf
  2. PDF-467

Gradient paint does not support buffered image modes other than RGB

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.3.3
    • Fix Version/s: 4.3.4
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      A client has reported that they are having difficulty converting a few documents to image. During the capture process the user is allowed to pick one of the following capture type colour modes for the resulting buffered image:

      // type is a given method-parameter - the user can define the ImageType
              // possible values:
              // - BufferedImage.TYPE_BYTE_GRAY
              // - BufferedImage.TYPE_BYTE_BINARY
              // - BufferedImage.TYPE_INT_RGB

      There is a logo in the document in question that contains a gradient. If the buffered image type is gray or binary the batik library we use for pattern paint will fail. It should be relatively straight foward to catch the exception and use a solid fill instead of the gradient paint. A check for a newer version of the pattern pain class would also be another good idea.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: