Hi,

Le 08/11/2011 03:48, gkasper a écrit :
> 
> Thank you Pascal, now I have this:
> 
>  <?xml version="1.0" encoding="UTF-8" ?> 
> - <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>
>   <fo:external-graphic src="url(Images/MASTER.gif)" content-height="269.4mm"
> content-width="215.9mm" scaling="uniform" height="269.4mm" width="215.9mm"
> /> 
>   </fo:block>
> ......
> Note I'm giving absolute positions for the background image now, and it
> actually solves the problem with the image getting cut off, but the issue
> with the data that goes to an extra-page is still in place...  Can you
> please suggest something? Interesting, I can play with the page margins, and
> sometimes the data is outputted OK, for example if I set top margin to 10mm
> - I have an issue, but if, in addition to that, I set left margin to 10mm -
> the data is outputted just fine.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to