Mhmm, it doesn't work here, even if i put the external-graphic in a
table-cell that has i.e. the size 4cm the SVG is scaled to the full body
width. But i found out something interesting:
The height of the table cell (with the svg image) is calculated
correctly. The height of the cell is the expected height of the svg
image. So fop seems to calculate the width and height of the image
correctly, only the svg has the wrong size...
BTW: There is no difference between 0.20.5rc and 0.20.4...
Is it possible that the problem is the SVG image itself???
Timo
J.Pietschmann wrote:
Timo Haberkern wrote:
i try to embedd an external svg graphic to my pdf file.I used the
following lines in my stylesheet:
fo:external-graphic space-before=0.1cm width=5cm
xsl:attribute name=src
xsl:value-of select=eo_256/ !-- file name of the svg
image --
/xsl:attribute
xsl:attribute name=width5cm/xsl:attribute
/fo:external-graphic
The result is not as expected. It seems FOP ignores the width
attribute. The embedded SVG image is scaled to the maximum width
(xsl-region-body-width). Any solutions for scaling an external svg
graphic?? What did i wrong?
Code like the above works for me. THere are however some issues
with SVG image scaling. the easiest way to control them is to
use both the same height and width in an absolute measurement
on both the fo:external-graphics aand the svg:svg element:
fo:external-graphic width=5cm height=2cm src=foo.svg/
and
svg:svg width=5cm height=2cm xmlns:svg=...
J.Pietschmann
-
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
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]