Re: [xep-support] Re: Image scaling

From: Dan Ochs <>
Date: Tue Dec 09 2008 - 08:54:47 PST

Please provide this list with a test case that shows the issue. The
test case shouldn't have any <xsl: in it, and only <fo: and also
please provide an example pdf of what you are getting and the svg
file. Once there is a test that the developers on this can look at
and run to see the issue, you are much more likely to get a response.


On Tue, Dec 9, 2008 at 3:18 AM, Mark Cilia Vincenti
<> wrote:
> Sorry for the bump, but I'm still trying to figure this thing out. Did
> anyone come across this same problem please?
> 2008/12/5 Mark Cilia Vincenti <>
>> Does anyone have a solution to this problem please? Or is this a
>> bug/limitation of RenderX?
>> I still can't get the SVG to automatically scale down to the space
>> allocated to it within its containing table cell without increasing the cell
>> dimensions.
>> 2008/12/4 Mark Cilia Vincenti <>
>>> Hi,
>>> I have an SVG image that shows up a grey triangle at the end of a grey
>>> box where some titles will go.
>>> Basically I set a table width to 100% with 2 columns, one with no width
>>> specified and one with 2.5mm column-width, which will be where the triangle
>>> will go.
>>> The height of the table has an initial value of 5mm (i.e. initially it
>>> should look 2.5mm by 5mm). However it may increase if the text inside wraps
>>> (probably close to 2.5mm by 9mm). In that case the image also needs to
>>> increase in height, but not in width. Since SVG is vector-based, the
>>> triangle should still look good, but obviously the angle would change.
>>> Here is the code I put inside the 2nd column:
>>> <fo:block line-height="0pt"><fo:external-graphic
>>> content-width="scale-to-fit" content-height="scale-to-fit"
>>> scaling="non-uniform" scaling-method="resample-any-method">
>>> <xsl:attribute name="src">url('<xsl:call-template name="imagesloc"
>>> />triangle.svg')</xsl:attribute>
>>> </fo:external-graphic></fo:block>
>>> I have also tried this (since the width is going to be constant):
>>> <fo:block line-height="0pt"><fo:external-graphic content-width="2.5mm"
>>> content-height="scale-to-fit" scaling="non-uniform"
>>> scaling-method="resample-any-method">
>>> <xsl:attribute name="src">url('<xsl:call-template name="imagesloc"
>>> />triangle.svg')</xsl:attribute>
>>> </fo:external-graphic></fo:block>
>>> My problem is that the SVG is showing at 100% of its width and height, in
>>> any scenario. It is refusing to scale to fit the area allocated to it.
>>> Any ideas please?
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Tue Dec 9 09:15:02 2008

This archive was generated by hypermail 2.1.8 : Tue Dec 09 2008 - 09:15:09 PST