There are a number of factors which specify exactly how the SVG image will be rendered, such as size, clipping etc.
</fo:block>
+ <fo:block>
+Note: if you want to know about SVG itself you should consult the appropriate SVG resource. The <fo:inline color="blue"><fo:basic-link external-destination="http://xml.apache.org/batik">Batik Project</fo:basic-link></fo:inline> is a good resource for information about SVG and samples etc.
+ </fo:block>
<fo:block space-before.optimum="5pt" space-after.optimum="5pt" font-weight="bold" font-size="12pt">
XML Syntax
external graphics do.
</fo:block>
+ <fo:block space-before.optimum="10pt">
+The following example shows how you could scale an external svg file.
+ </fo:block>
+
+ <fo:block>
+<fo:instream-foreign-object>
+<svg xmlns="http://www.w3.org/2000/svg" width="20mm" height="20mm" xml:space="preserve">
+ <svg viewBox="0 0 20 20" preserveAspectRatio="none">
+ <image xlink:href="file:boxes.svg" x="0" y="0" width="20mm" height="20mm"/>
+ </svg>
+</svg>
+</fo:instream-foreign-object>
+and
+<fo:instream-foreign-object>
+<svg xmlns="http://www.w3.org/2000/svg" width="20mm" height="20mm" xml:space="preserve">
+ <g transform="scale(3.7)">
+ <image xlink:href="file:boxes.svg" x="0" y="0" width="20mm" height="20mm"/>
+ </g>
+</svg>
+</fo:instream-foreign-object>
+and
+<fo:instream-foreign-object>
+<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" width="20mm" height="20mm" xml:space="preserve">
+ <image preserveAspectRatio="xMidYMid" xlink:href="file:boxes.svg" x="0" y="0" width="10mm" height="10mm"/>
+</svg>
+</fo:instream-foreign-object>
+
+ </fo:block>
+
+
</fo:flow>
</fo:page-sequence>
</fo:root>