|
Subject: Re: [xsl] XSL-FO: How to Control Rendered Size of InStream SVG? From: "Eliot Kimber ekimber@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 27 Jul 2014 14:36:15 -0000 |
That was the hint I needed.
It turns out that the key appears to be specifying @width and @height on
the <svg> element. This markup gives me the result I wanted: a 7in x 9pt
rectangle:
<fo:block margin-top="2pc">
<fo:instream-foreign-object
>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="7in"
height="9pt"
xml:space="preserve">
<rect x="0" y="0" fill="#009A9A" width="100%" height="100%"/>
</svg>
</fo:instream-foreign-object>
</fo:block>
Cheers,
E.
bbbbb
Eliot Kimber, Owner
Contrext, LLC
http://contrext.com
On 7/27/14, 3:16 AM, "jfrm.maurel@xxxxxxxxx jfrm.maurel@xxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>Le 26/07/2014 22:38, Eliot Kimber ekimber@xxxxxxxxxxxx a C)crit :
>
>Hi,
>
>> Any guidance on what I need to adjust to control the size of the
>>rendered
>> SVG to my desires?
>
>Maybe:
>
>http://xmlgraphics.apache.org/fop/1.1/graphics.html#svg-scaling
>
>Regards
>
>--
>Jean-FranC'ois MAUREL
>PIMECA
>http://www.pimeca.com
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSL-FO: How to Control Re, jfrm.maurel@xxxxxxxx | Thread | Re: [xsl] XSL-FO: How to Control Re, Eliot Kimber ekimber |
| Re: [xsl] XSL-FO: How to Control Re, jfrm.maurel@xxxxxxxx | Date | Re: [xsl] XSL-FO: How to Control Re, Eliot Kimber ekimber |
| Month |