You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Robert Guggenberger <Ro...@wuestenrot.at> on 2004/10/01 15:14:49 UTC

different header on first page

Hi all,


i got pages with a JPG on the top (in the region before)

now this JPG-header should only be visible on the first page

there is no special content on the first page ( a must not for a page 
break -> otherwise i would do it with 2 page sequences, flows)


i found how to use differnt layouts (margins ...) with different 
page-masters.

But i havnt found  a way how to show, in my case a LOGO, on the first page 
and not on the others

regards 

robert

Re: different header on first page

Posted by Chris Bowditch <bo...@hotmail.com>.
Robert Guggenberger wrote:

> i got pages with a JPG on the top (in the region before)
> 
> now this JPG-header should only be visible on the first page
> 
> there is no special content on the first page ( a must not for a page 
> break -> otherwise i would do it with 2 page sequences, flows)
> 
> 
> i found how to use differnt layouts (margins ...) with different 
> page-masters.
> 
> But i havnt found  a way how to show, in my case a LOGO, on the first 
> page and not on the others

this is straight forward. create a layout-set something like:

<fo:layout-set>
<fo:simple-page-master master-name="firstpage">
<fo:region-body margin-top="30mm"/>
<fo:region-before region-name="firstheader" extent="30mm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="otherpages">
<fo:region-body/>
</fo:simple-page-master>
<fo:page-sequence-master name="all">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="firstpage" 
page-position="firstpage"/>
<fo:conditional-page-master-reference master-reference="otherpages" 
page-position="rest"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-set>


then the page-sequence will be:

<fo:page-sequence master-reference="all">

<fo:static-content flow-name="firstheader">
<!-- put content for first header here -->
</fo:static-content>

<fo:flow flow-name="xsl-region-body">
<!-- put your regular flowing content here -->
</fo:flow>

</fo:page-sequence>

I hope this is clear,

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org