From: Keiron Liddle Date: Wed, 6 Jun 2001 14:47:51 +0000 (+0000) Subject: an example fo file showing how to embed svg documents X-Git-Tag: PRE_CODEFORMATTING~106 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bc673352c73b89f1c26e984e34b38965639dda37;p=xmlgraphics-fop.git an example fo file showing how to embed svg documents in progress git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194273 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/examples/svg/embedding.fo b/docs/examples/svg/embedding.fo new file mode 100644 index 000000000..9c24fa7e2 --- /dev/null +++ b/docs/examples/svg/embedding.fo @@ -0,0 +1,1001 @@ + + + + + + + + + + + + + Embedding SVG examples + + + Page + + + + + + Embedding SVG + + + + + + +A less cute tiger + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Some examples of how to embed an SVG image inside you FO documents + + + +Introduction + + + +This document shows some examples of how an SVG document can be embedded directly in +an fo document and how FOP will render it. + + + +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. + + + + +XML Syntax + + + +Here we have some examples of how the XML can be specified in the fo document. + + + + + + + + +This first example specifies the name space on the instream-foreign-object using the xmlns:svg attribute. +Then all the svg elements start with the svg: namespace prefix. It can be specified on any element +above where the svg:svg tag appears (eg. fo:root). + + + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + + + + + + +This example specifies the name space on the svg:svg element using the xmlns:svg attribute. +Then all the svg elements start with the svg: namespace prefix. +It is able to determine the namespace for the current element. + + + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + + + + + + +This example specifies the namespace for the current element, rather than for the svg: prefix. +This means that all elements under this one are assumed to have the same namespace. + + + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + + + + + + + + + + + +Sizing + + + + The size of the instream-foreign-object is obtained in a number of ways. + + + + + + + + + +Specify the size on the instream-foreign-object element. + + + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + + + +Clipping + + + + + + + +Interesting Functionality + + + + + + + + + +