You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2001/06/28 10:06:01 UTC
cvs commit: xml-fop/docs/examples/svg external.fo embedding.fo
keiron 01/06/28 01:06:01
Modified: docs/examples/svg external.fo embedding.fo
Log:
added some more info, examples
Revision Changes Path
1.2 +30 -0 xml-fop/docs/examples/svg/external.fo
Index: external.fo
===================================================================
RCS file: /home/cvs/xml-fop/docs/examples/svg/external.fo,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- external.fo 2001/06/08 08:56:02 1.1
+++ external.fo 2001/06/28 08:05:58 1.2
@@ -91,6 +91,36 @@
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>
1.3 +3 -0 xml-fop/docs/examples/svg/embedding.fo
Index: embedding.fo
===================================================================
RCS file: /home/cvs/xml-fop/docs/examples/svg/embedding.fo,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- embedding.fo 2001/06/08 08:56:02 1.2
+++ embedding.fo 2001/06/28 08:05:59 1.3
@@ -783,6 +783,9 @@
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
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org