Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-3108

[PATCH] fo:external-graphic - PDF with gradient component not displayed correctly after scaling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7, 2.8
    • 2.9
    • None
    • None

    Description

      Using PDF-Images to inject a PDF as an image (fo:external-graphic). Image/PDF has a gradient fill component.  When scaling the image, the gradient does not display properly.  Resulting from shifted gradient to no gradient depending on scale.

      width scaling All issues are found when scaling width by %

      height scaling Doesn't seem to even scale the image

       

      Files attached for testing:

      • pdf-external-graphic-scaling-with-gradients.fo - the FO file, with a selection of image inclusions at different scales and scaling methods
      • img-with-gradient.pdf - the PDF image being injected in to rendered pdf, containing a gradient filled component.
      • out1.pdf - the result of running fop on above

      Tested on Windows using FOP 2.7 and 2.8

      Command used to execute is

      fop.bat -fo pdf-external-graphic-scaling-with-gradients.fo -pdf out1.pdf

      Attachments

        1. tiling.patch
          53 kB
          Dave Roxburgh
        2. submitted.patch
          50 kB
          Dave Roxburgh
        3. sub_op.patch
          51 kB
          Dave Roxburgh
        4. pdf-external-graphic-scaling-with-gradients.fo
          4 kB
          Mark Gibson
        5. patch_one_instance.diff
          30 kB
          Dave Roxburgh
        6. out1.pdf
          28 kB
          Mark Gibson
        7. img-with-gradient.pdf
          12 kB
          Mark Gibson

        Activity

          People

            ssteiner Simon Steiner
            Jibbeau Mark Gibson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: