On Dec 10, 2005, at 00:34, [EMAIL PROTECTED] wrote:
Hi Jay,
After reading the spec, I thought of trying to make the image a fixed
width, so I tried
<fo:external-graphic src="someimage.gif" content-width="5.5in"/>
That makes images less than 5.5 inches wide be 5.5 inches wide,
Errm... Now you're losing me. I thought you were trying to avoid
smaller images being scaled up (?) A fixed value for content-width
per se implies scaling if the image is smaller/larger...
but the PDF file created by FOP still blows up when it encounters
images larger
than 5.5 inches wide.
Have you tried adding width="..." to the fo:external-graphic? Works
fine for me.
I must say that it is weird that specifying the width seems to be
mandatory ATM. If width is absent (= implicit value of 'auto'), then
for an fo:external-graphic it should become the content-width of the
graphic, but currently it makes FOP crash in case the image is larger
than the specified content-width...
Writing
<fo:external-graphic src="image.gif" width="5.5in" content-
width="5.5in" />
should come down to the same as what you have above.
Even stranger is that I also checked
<fo:external-graphic src="..." width="auto" content-width="5.5in" />
and that worked nicely.
So currently there is a difference between an explicit or an implicit
auto-width...
Then I tried it with content-width="396px", and that worked. Yay!
... except when the content-width is specified in pixels.
I still think there's a bug in there somewhere, but at least there's a
workaround.
Yup, definitely a bug somewhere. As for a workaround, again, I was
under the impression that you needed images smaller than 5.5in to
remain as wide as they intrinsically are, but only need scaling down
for larger graphics... Have I misinterpreted something?
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]