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

incomplete svg example in extensive.fo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.5
    • None
    • None
    • None

    Description

      I found that in the example file http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/fo/basic/extensive.fo the svg example won't work properly, because some elements are missing style information and thus won't show, 'cause they are drawn with white ink on white paper.

      See:
      <fo:block><fo:instream-foreign-object>
      <svg:svg width="400pt" height="200pt">
      <svg:rect style="fill:none;stroke:blue" x="20pt" y="20pt" width="100pt" height="100pt"/>
      <svg:line x1="20pt" y1="20pt" x2="120pt" y2="120pt"/>
      <svg:line x1="120pt" y1="20pt" x2="20pt" y2="120pt"/>
      <svg:text x="20pt" y="150pt">Hello SVG!</svg:text>
      </svg:svg>
      </fo:instream-foreign-object></fo:block>

      The lines and text wouldn't show after i copied this to my example file. Please add style information in the example file, so that this will work when copy and pasted to another document.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cdanzmann Christian D
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: