Fop
  1. Fop
  2. FOP-2079

[PATCH] SVG line dash pattern wrong in PDF

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: renderer/pdf
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      53431

      Description

      This issue is discussed in a recent fop-dev thread: http://marc.info/?l=fop-dev&m=133817089626596&w=2.

      In simple terms, the following SVG element with two paths is rendered wrong in PDF (but not in PS). The second line appears dashed when it should not be. If the paths are flipped the rendering is correct.

      <svg xmlns="http://www.w3.org/2000/svg" version="1.1" overflow="auto">
      <path d="M 0 0 L 100 0" fill="white" stroke="black" stroke-width="1" stroke-dasharray="5"/>
      <path d="M 0 10 L 100 10" fill="white" stroke="red" stroke-width="3"/>
      </svg>

      1. fop-svg-dash-array.patch
        0.6 kB
        Luis Bernardo
      2. test.tar.gz
        5 kB
        Luis Bernardo
      3. fop-svg-dash-with-test.patch
        3 kB
        Luis Bernardo

        Activity

        Hide
        Luis Bernardo added a comment -

        Attachment fop-svg-dash-array.patch has been added with description: patch

        Show
        Luis Bernardo added a comment - Attachment fop-svg-dash-array.patch has been added with description: patch
        Hide
        Luis Bernardo added a comment -

        the attached file contains a test FO and SVG file, and the PDF output before and after the fix.

        Show
        Luis Bernardo added a comment - the attached file contains a test FO and SVG file, and the PDF output before and after the fix.
        Hide
        Luis Bernardo added a comment -

        Attachment test.tar.gz has been added with description: source example to test bug fix

        Show
        Luis Bernardo added a comment - Attachment test.tar.gz has been added with description: source example to test bug fix
        Hide
        Luis Bernardo added a comment -

        this patch, which replaces the previous one, adds a simple unit test to the original fix.

        Show
        Luis Bernardo added a comment - this patch, which replaces the previous one, adds a simple unit test to the original fix.
        Hide
        Luis Bernardo added a comment -

        Attachment fop-svg-dash-with-test.patch has been added with description: updated patch

        Show
        Luis Bernardo added a comment - Attachment fop-svg-dash-with-test.patch has been added with description: updated patch
        Hide
        Glenn Adams added a comment -

        (In reply to comment #2)
        > Created attachment 28991 [details]
        > updated patch
        >
        > this patch, which replaces the previous one, adds a simple unit test to the
        > original fix.

        applied at http://svn.apache.org/viewvc?rev=1353311&view=rev

        thanks luis! please review and close

        Show
        Glenn Adams added a comment - (In reply to comment #2) > Created attachment 28991 [details] > updated patch > > this patch, which replaces the previous one, adds a simple unit test to the > original fix. applied at http://svn.apache.org/viewvc?rev=1353311&view=rev thanks luis! please review and close

          People

          • Assignee:
            fop-dev
            Reporter:
            Luis Bernardo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development