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

Text run using "dy" in SVG published to PDF is not properly placed vertically

    XMLWordPrintableJSON

Details

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

    Description

      If we have an SVG like:

      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
      <svg xmlns="http://www.w3.org/2000/svg" 
      		width="15.90551in" height="12.93701in"
      		>
      		<g >
      			<text y="50">A <tspan dy="20">B</tspan></text>		</g>
      </svg>

      which gets embedded in an XSL-FO document and then using Apache FOP and Batik we build the PDF, the PDF does not contain the "B" text run on a line under the "A" text run. So it seems to ignore the "dy" attribute set on it.

      Using just Batik to convert the SVG to a binary image works though. So there is probably a problem somewhere in the PDF Graphics 2D or the PDF Text Painter.

      Attachments

        Activity

          People

            Unassigned Unassigned
            radu_coravu Radu Coravu
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified