mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-03 05:09:28 +00:00
e2a22b2b29
- Erstellung von Lehraufträgen - xslfo2pdf
52 lines
2.0 KiB
XML
52 lines
2.0 KiB
XML
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
|
|
<fo:layout-master-set>
|
|
<fo:simple-page-master master-name="simple">
|
|
<fo:region-body/>
|
|
</fo:simple-page-master>
|
|
</fo:layout-master-set>
|
|
<fo:page-sequence master-reference="simple">
|
|
<fo:flow flow-name="xsl-region-body">
|
|
<fo:block>
|
|
<fo:instream-foreign-object>
|
|
<svg:svg width="200" height="300" xmlns:svg="http://www.w3.org/2000/svg" >
|
|
<svg:g fill="none" stroke="black" stroke-width="3" >
|
|
<!-- Draw the axes of the original coordinate system -->
|
|
<svg:line x1="0" y1="1.5" x2="400" y2="1.5" />
|
|
<svg:line x1="1.5" y1="0" x2="1.5" y2="150" />
|
|
</svg:g>
|
|
<!-- First, a translate -->
|
|
<svg:g transform="translate(50,50)">
|
|
<svg:g fill="none" stroke="red" stroke-width="1" >
|
|
<svg:line x1="0" y1="0" x2="5" y2="0" />
|
|
<svg:line x1="0" y1="0" x2="0" y2="5" />
|
|
</svg:g>
|
|
<svg:text x="0" y="0" font-size="16" font-family="Verdana" >
|
|
....Translate(1)
|
|
</svg:text>
|
|
<!-- Second, a rotate -->
|
|
<svg:g transform="rotate(-45)">
|
|
<svg:g fill="none" stroke="green" stroke-width="1" >
|
|
<svg:line x1="0" y1="0" x2="5" y2="0" />
|
|
<svg:line x1="0" y1="0" x2="0" y2="5" />
|
|
</svg:g>
|
|
<svg:text x="0" y="0" font-size="16" font-family="Verdana" >
|
|
....Rotate(2)
|
|
</svg:text>
|
|
<!-- Third, another translate -->
|
|
<svg:g transform="translate(20,20)">
|
|
<svg:g fill="none" stroke="blue" stroke-width="1" >
|
|
<svg:line x1="0" y1="0" x2="5" y2="0" />
|
|
<svg:line x1="0" y1="0" x2="0" y2="5" />
|
|
</svg:g>
|
|
<svg:text x="0" y="0" font-size="16" font-family="Verdana" >
|
|
....Translate(3)
|
|
</svg:text>
|
|
</svg:g>
|
|
</svg:g>
|
|
</svg:g>
|
|
</svg:svg>
|
|
</fo:instream-foreign-object>
|
|
</fo:block>
|
|
</fo:flow>
|
|
</fo:page-sequence>
|
|
</fo:root> |