diff options
author | Keiron Liddle <keiron@apache.org> | 2001-06-28 08:05:59 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-06-28 08:05:59 +0000 |
commit | 4fe88f283da9312485d44c9112b01db5b4f5453f (patch) | |
tree | a487de4878521568d03a39280a740d6774d8f237 /docs/examples/svg | |
parent | 27bb4c66d592d9382ec8a0a3163bd0b9403e0a45 (diff) | |
download | xmlgraphics-fop-4fe88f283da9312485d44c9112b01db5b4f5453f.tar.gz xmlgraphics-fop-4fe88f283da9312485d44c9112b01db5b4f5453f.zip |
added some more info, examples
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/examples/svg')
-rw-r--r-- | docs/examples/svg/embedding.fo | 3 | ||||
-rw-r--r-- | docs/examples/svg/external.fo | 30 |
2 files changed, 33 insertions, 0 deletions
diff --git a/docs/examples/svg/embedding.fo b/docs/examples/svg/embedding.fo index 0a38ae40a..f685d5c40 100644 --- a/docs/examples/svg/embedding.fo +++ b/docs/examples/svg/embedding.fo @@ -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 diff --git a/docs/examples/svg/external.fo b/docs/examples/svg/external.fo index 775eb508b..abd3d31b6 100644 --- a/docs/examples/svg/external.fo +++ b/docs/examples/svg/external.fo @@ -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> |