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 scaling images that I've found so far is a bit more complex:
<fo:external-graphic
inline-progression-dimension.minimum="auto"
inline-progression-dimension.maximum="100%"
block-progression-dimension.minimum="auto"
block-progression-dimension.maximum="6.5in"
I you also have a target size that you'd like the image to have, you can
also add one or both of these:
inline-progression-dimension.optimum="300pt" (for the width)
block-progression-dimension.optimum="300pt" (for the height)
You can read about all the ways of controlling width and height at
http://www.w3.org/TR/xsl/#d0e22982
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]