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

[PATCH] SVGs with radial gradiant causes PDF display error

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • image/svg
    • None
    • Patch

    Description

      A radial gradiant isn't processed correctly by FOP. E.g. the following gradiant:

      <radialGradient
      cx="51159.898"
      cy="57300"
      r="5279.6602"
      fx="51159.898"
      fy="57300"
      id="id0"
      gradientUnits="userSpaceOnUse">
      <stop
      id="stop28"
      style="stop-color:#fefefe;stop-opacity:1"
      offset="0" />
      <stop
      id="stop30"
      style="stop-color:#cdcece;stop-opacity:1"
      offset="0.58823502" />
      <stop
      id="stop32"
      style="stop-color:#9d9e9e;stop-opacity:1"
      offset="1" />
      <stop
      id="stop34"
      style="stop-color:#9d9e9e;stop-opacity:1"
      offset="1" />
      </radialGradient>

      is only outputted with one "Bound" entry in the PDF color function (instead of two).

      When opening the PDF with Adobe Acrobat the SVG is only partially displayed and an error message pops up after clicking on the image.

      Attachments

        1. fop-2549.patch
          3 kB
          Matthias Reischenbacher
        2. fop-2549-test-case_wrong.pdf
          6 kB
          Matthias Reischenbacher
        3. fop-2549-test-case.pdf
          6 kB
          Matthias Reischenbacher
        4. fop-2549-test-case.svg
          4 kB
          Matthias Reischenbacher

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            matthias8283 Matthias Reischenbacher

            Dates

              Created:
              Updated:

              Slack

                Issue deployment