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

[PATCH] SVG line dash pattern wrong in PDF

    Details

    • Type: 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>

        Attachments

        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

            People

            • Assignee:
              fop-dev@xmlgraphics.apache.org fop-dev
              Reporter:
              lmpmbernardo Luis Bernardo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: