[xep-support] use intrinsic height of SVG images

Oliver Becker obecker at informatik.hu-berlin.de
Fri Jan 2 07:31:40 PST 2004


Happy new year everybody,

I'm sure this is a dumb question (or at least a faq).
I want to embed an SVG into my PDF document.

My FO looks like this:
<fo:block [spaces and borders]>
<fo:external-graphic src="url(foo.svg)" content-width="scale-to-fit" 
                     width="210mm - 35mm - 45mm"/>
</fo:block

foo.svg starts with these lines:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
          "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     width="900" height="500" viewBox="0 0 900 500">

(I've added the viewBox attribute according to the advice in 
http://xep.xattic.com/xep/doc/spec.html#SVG but it doesn't solve
the problem.)

The effect of the lines above is that my graphic is scaled to the requested
width (and height as well), but the block doesn't reserve enough vertical
space. So the image overlaps the preceding text block.

What do I have to change to make XEP compute and reserve the needed space?

Thanks in advance,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker at informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list