You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svg-lingrad.fo 1.1KB

12345678910111213141516171819202122232425262728
  1. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  2. <fo:layout-master-set>
  3. <fo:simple-page-master master-name="one">
  4. <fo:region-body margin-top="25pt" margin-bottom="25pt" margin-left="50pt" margin-right="50pt" />
  5. </fo:simple-page-master>
  6. </fo:layout-master-set>
  7. <fo:page-sequence master-name="one">
  8. <fo:flow flow-name="xsl-region-body">
  9. <fo:instream-foreign-object>
  10. <svg:svg width="500" height="400">
  11. <svg:defs>
  12. <svg:linearGradient id="myGradient" x1="0" y1="200" x2="500" y2="350">
  13. <svg:stop offset="0%" style="color:blue; opacity:100%"/>
  14. <svg:stop offset="100%" style="color:red; opacity:100%"/>
  15. </svg:linearGradient>
  16. </svg:defs>
  17. <svg:text x="30" y="150" style="font-size:140; font-weight:bold; fill:url(#myGradient); stroke:#000000;stroke-width:3">SVG</svg:text>
  18. <svg:g style="fill:url(#myGradient); stroke:#000000">
  19. <svg:rect x="0" y="180" width="400" height="10"/>
  20. </svg:g>
  21. </svg:svg>
  22. </fo:instream-foreign-object>
  23. <fo:block>The above is an example of an SVG graphic</fo:block>
  24. </fo:flow>
  25. </fo:page-sequence>
  26. </fo:root>