Pascal Sancho wrote:
>
> This because the available inline-progression-dimension (i-p-d) is
> reduced by the margin-left (or right), then your image size is reduced
> both in width and height (since you set scaling="uniform", IIRC).
>
> What FOP handles very well is "elastic sizes":
>
> If you set b-p-d.maximum, and b-p-d.optimum, you can have an image
> height that is lower or equal to the b-p-d.maximum, so you can adjust
> both in width (using i-p-d="100%") and height (by setting different
> values to b-p-d.maximum, and b-p-d.optimum)
>
> b-p-d.maximum can be considered as max-height CSS2 prop.
>
>> Thanks!
>
> --
> Pascal
>
>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master page-height="279.4mm" page-width="215.9mm"
margin-top="0mm" margin-bottom="0mm" margin-left="0mm" margin-right="0mm"
master-name="PageMaster">
<fo:region-body border-style="none" border-width="thin" margin-top="10mm"
margin-left="0mm" margin-right="0mm" margin-bottom="0mm" />
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence initial-page-number="1" master-reference="PageMaster">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:block top="10mm" left="0mm" width="215.9mm" height="269.4mm"
margin-top="0mm" margin-left="0mm" margin-right="0mm" margin-bottom="0mm"
block-progression-dimension.maximum="269.4mm"
block-progression-dimension.optimum="269.4mm"
inline-progression-dimension="100%">
<fo:external-graphic src="url(Images/MASTER.gif)" content-height="269.4mm"
content-width="215.9mm" scaling="uniform" height="100%" width="100%"
block-progression-dimension.maximum="269.4mm"
block-progression-dimension.optimum="269.4mm"
inline-progression-dimension="100%" />
</fo:block>
Thanks Pascal, I tried to apply both b-p-d maximum and optimum, and i-p-d,
to both fo:block and fo:external graphic. Tried different combinations:
applied to block only, then to external graphic only, then to both (shown
above) - still no luck, the data goes to an extra page. What am I doing
wrong?..
Thanks for your help!
--
View this message in context:
http://old.nabble.com/Background-image-tp32788696p32802805.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]