On Dec 11, 2005, at 00:50, Jay Bryant wrote:

Have you tried adding width="..." to the fo:external-graphic? Works
fine for me.

Yup. Tried that. It didn't work with images wider than the content area (at least not with inches as the unit of measure). It DID make images smaller than the content area fill more of the content area (again with units of
measure = inches).

Hmm.. I wonder if this depends on the image format. It just occurred to me that your tests use GIF, while I was using JPG. Another detail to consider.

My solution entails reading the width of the graphic (in pixels) through a Java extension to the XSL processor (Saxon). Then, if the image is less than
396 pixels wide, I just put it in (with <fo:external-graphic
src="someimage.gif"/>. Else, if the image is more than 396 pixels wide, I
force its width to be 396 pixels (with <fo:external-graphic
src="someimage.gif" content-width="396px"/>). So, I'm trying to force the width only in the case where the graphic exceeds the available space. It was faster to write an extension function (took 15 minutes or so) than to try to
scale all my screen captures.

Aaah, OK, now I get you.

Thanks for looking into things.


You're welcome, of course.

And thanks to you for the feedback!

Cheers,

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to