I'm using FOP 1.0, and I'm trying to scale an image that is too large for the
page so that it fits. What attributes do I need to use? I can't figure out
which ones I need or what values are required.
Eric Amick Systems Engineer II
U.S. House of Representatives | Office of the Clerk |
Hello Eric,
are you looking for something like this?
fo:external-graphic src=url('{$sourceImageLink}')
content-width=scale-to-fit border=solid 0.1pt width=90mm /
On 30/3/2012 4:43 PM, Amick, Eric wrote:
I'm using FOP 1.0, and I'm trying to scale an image that is too large
for the page so
Hi,
also, you can use scale-down-to-fit, in this case the image will be
resized *only* if too large.
Le 30/03/2012 15:48, Klearchos Klearchou a écrit :
Hello Eric,
are you looking for something like this?
fo:external-graphic src=url('{$sourceImageLink}')
content-width=scale-to-fit
For some reason, using the width property on external-graphic never occurred to
me. I have it figured out now. Thanks.
Eric Amick Systems Engineer II
Legislative Computer Systems
-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr]
Sent: Friday, March 30, 2012
On 03/30/2012 09:43 AM, Amick, Eric wrote:
I’m using FOP 1.0, and I’m trying to scale an image that is too large
for the page so that it fits. What attributes do I need to use? I can’t
figure out which ones I need or what values are required.
Eric Amick Systems Engineer II
The best way of
Hi,
like width or height, i-p-d and b-p-d usage don't resize images, but the
rectangle allocated to it.
Once you have defined your rectangle (using elastic dimensions or not,
depending on *.minimum, *.maximum and *.optimum values), you should use
content-* properties to rescale your image, if
As Pascal recommends below, I use the content-width property to scale
images. In my case, I set the content-width as specified in the XML input:
fo:external-graphic
xsl:attribute name=src
xsl:value-of select=url /
/xsl:attribute
xsl:attribute name=content-width
xsl:value-of select=width /