No, that's what I tried to explain. You do have to know the size of the image and use absolute values. Otherwise, FOP needs to be improved first.
On 15.05.2006 10:58:21 Dominic Brügger wrote: > Thank you. But if I set the content-with to an absolute value (the width > of the region-body's content area), the image would be scaled even if it > is smaller, I guess. Is it possible to scale the image only if it does > not fit in the region-body's content area? > > Jeremias Maerki wrote: > > >This is currently not possible, I'm afraid. You'll have to know about > >the image size and set content-height or content-width to the > >height or width of the region-body's content area, whichever would > >overflow the available size. > > > >If FOP supported it, you could specify like this: > > > ><fo:external-graphic inline-progression-dimension.optimum="auto" > >inline-progression-dimension.maximum="100%" > >block-progression-dimension.optimum="auto" > >block-progression-dimension.maximum="100%" content-width="scale-to-fit" > >content-height="scale-to-fit" src="..."/> > > > >But that'll take a little bit of work in the > >AbstractGraphicsLayoutManager to make this work. > > > >On 15.05.2006 10:34:33 Dominic Brügger wrote: > > > > > >>What is the correct way to fit an image that is larger than the > >>available area into a page? Currently I'm using > >><fo:external-graphic content-width="scale-to-fit" src="anImage.jpg" > >>content-type="image/bmp" /> > >>which produces a "Line 1 of a paragraph overflows the available area." > >>warning. I already read the specs, but I don't realy understand the > >>difference between content-width and with. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
