<fo:instream-foreign-object>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" width="113mm" height="23mm">
<image preserveAspectRatio="xMidYMid" xlink:href="file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg" width="113" height="23"/>
</svg>
</fo:instream-foreign-object>
Timo
Myriam Delperier wrote:
I don't know if it's the only problem but I think you have to put the attributes width & height in your svg element here is an exemple which works for me
<fo:block>
<fo:instream-foreign-object>
<svg id="svg-root" width="32" height="50" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
<title id="test-title">Image svg test</title>
<desc id="test-desc">Test</desc>
<g id="test-body-content">
<image id="image1JPEG" x="0" y="0" width="32" height="50" xlink:href="../../production/lyon2/2000/dieng_sa/xml/ressources/gif.gif"/>
</g>
</svg>
</fo:instream-foreign-object>
</fo:block>
----- Original Message -----
From: "Timo Haberkern" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 10:00 AM Subject: Can't get it work (was: Insert SVG image)
somebody who can help me? It is very urgent!Hello again,
i can't sort out my problem with inserting external SVG images. Is there
I still have the same problem. If i embedd a SVG image withfo:external-graphic it is included correctly, but wrong scaled.
xml:space="preserve">If i use:
<fo:instream-foreign-object>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
<image xlink:href="file:///E:\fop-0.20.5rc2\examples\fo\svg\Kanaele.svg"width="113" height="23"/>
<http://www.w3.org/2000/svg> width="20mm"</svg> </fo:instream-foreign-object>
i dont see my image at all.
I am using the current RC2. Somebody has an idea whats going wrong? I have attached my SVG image.
Best regards
Timo
Timo Haberkern wrote: ------------------------ Hello all,
i have a problem inserting a SVG image. First i tried it with:
<fo:external-graphic src="file.svg" width="10cm"> but it seems there is a bug. The SVG image is shown correctly but isn't scaled as i wished (to be exactly-> The image allways has the full width of the region-body!).
After a look in the examples i saw, that there is used the following:
<fo:instream-foreign-object>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
height="20mm" xml:space="preserve"> <image preserveAspectRatio="xMidYMid" xlink:href="file:file.svg" x="0" y="0" width="10mm" height="10mm"/> </svg> </fo:instream-foreign-object>
I tried to adapt this. But now there is the "standard"-Error-Image of batik shown. If i insert the boxes.svg from the samples instead of file.svg everything was fine.
Is there a problem with my file (but it was shown correctly with external-graphic and batiks squiggle)??
Thanks for any help...
---------------------------------------------------------------------------- ----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
.
-- Grüsse
Timo Haberkern
EMEDIA OFFICE GmbH Wingertstr. 4 74850 Schefflenz-Kl.
http://www.emedia-office.com [EMAIL PROTECTED]
Tel.: 06293/921121 Fax: 06293/921129
out.pdf
Description: Adobe PDF document--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]