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