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]




--
Dominic Brügger
Software-Ingenieur

WIR SIND UMGEZOGEN und
haben eine neue Adresse
sowie neue Telefonnummern:

Puzzle ITC GmbH
Eigerplatz 4
CH-3007 Bern

Telefon +41 31 370 22 00
Direkt  +41 31 370 22 13
Mobile  +41 79 740 99 03
Fax     +41 31 370 22 01

www.puzzle.ch

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

Reply via email to