Dennis Myrén wrote:

<snip/>

Is there a way to set the background color of the entire page, regardless of whether objects are placed

No, you cant set background color on the entire page. But you can set it on region-*. So in your case, as well as setting background color on region-body you will need to set it on region-before too.


<snip/>

I would like not to repeat that static content, but rather have it rendered only at the first page.

This is straigt forward to achieve. You will need to create two fo:simple-page-master objects, one with a region-before defined and the other without. Then create a fo:page-sequence-master which uses defines which simple-page-master is used based on page-position. The fo:page-sequence then references the page-sequence-master. E.g.


<fo:simple-page-master master-name="first" page-width="210mm" page-height="297mm">
<fo:region-body margin-top="20mm" background-color="blue"/>
<fo:region-before region-name="firstHeader" extent="20mm" background-color="blue"/>
</fo:simple-page-master>


<fo:simple-page-master master-name="rest" page-width="210mm" 
page-height="297mm">
<fo:region-body margin-top="20mm" background-color="blue"/>
<fo:region-before region-name="restHeader" extent="20mm" 
background-color="blue"/>
</fo:simple-page-master>

<fo:page-sequence-master name="all">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="first" page-position="first"/>
<fo:conditional-page-master-reference master-reference="rest" page-position="rest"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>


then the page-sequence element references the page-sequence-master, e.g.

<fo:page-sequence master-reference="all">
<fo:static-content flow-name="firstHeader">
<fo:block>This will only appear on page 1</fo:block>
</fo:static-content>
<fo:flow>
<!-- your table as usual -->
</fo:flow>
</fo:page-sequence>

HTH!

Chris


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



Reply via email to