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

[PATCH] SVG line dash pattern wrong in PDF

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • renderer/pdf
    • None
    • Operating System: All
      Platform: All
    • 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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment