Christian Danzmann created FOP-2404:
---------------------------------------

             Summary: incomplete svg example in extensive.fo
                 Key: FOP-2404
                 URL: https://issues.apache.org/jira/browse/FOP-2404
             Project: Fop
          Issue Type: Bug
    Affects Versions: trunk
            Reporter: Christian Danzmann
            Priority: Minor


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to