|
Q. |
How can I embed SVG in a document?
[No.2002101501]
|
| A. |
There are two ways of embedding SVG. One is to link to the external destination by using 'external-graphic'. The other is to describe the code of svg or abc:svg xmlns:abc="http://www.w3.org/2000/svg"
directly to the document by using 'instream-foreign-object'.
<fo:instream-foreign-object content-width="215.9mm" content-height="279.4mm" >
<svg xmlns="http://www.w3.org/2000/svg">
(Code of SVG)
</svg>
</fo:instream-foreign-object>
In this case please be sure to make the first element as svg or abc:svg xmlns:abc="http://www.w3.org/2000/svg".
(abc as namespace prefix)
|