]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
added some more info, examples
authorKeiron Liddle <keiron@apache.org>
Thu, 28 Jun 2001 08:05:59 +0000 (08:05 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 28 Jun 2001 08:05:59 +0000 (08:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194321 13f79535-47bb-0310-9956-ffa450edef68

docs/examples/svg/embedding.fo
docs/examples/svg/external.fo

index 0a38ae40a3802c4b200641e4ada6d4c5058e4957..f685d5c40bef30c91e0c538fcbf1b15263dc3361 100644 (file)
@@ -783,6 +783,9 @@ There are a couple of ways to specify the XML for embedding.
 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
index 775eb508bb57a644ad3dd57a6e6302db476fa6d3..abd3d31b61c7572c44f7dd6bf1d273a02e5c94e9 100644 (file)
@@ -91,6 +91,36 @@ Apart from this external svg images should behave in the same way that other typ
 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>