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 "Brienen, SJP (Stefan)" <S....@rf.rabobank.nl> on 2002/10/28 13:40:36 UTC

strange behaviour of footers

Hello,

I am trying a very simple thing with fop. That is creating a document with a
different header on the first page and the same header on all other pages.
The same is for the start region (the same for all pages except the first
one). The footer is the same on every page though.
Now I tried two things:

First I did the normal thing, that is defining the after-regions without a
region-name attribute and defining 1 static-content referencing
xsl-region-after. The generated PDF document gives me a footer on the first
page, and for the rest of the pages on every even page.

Second I tried to name the after-regions as in the code-snippet below. I
then defined two static-contents with the same content, referencing the
named region. In this case a footer is displayed on the first page and then
on every odd page.

What is the problem? Am I doing anything wrong here?

Please help me.

regards
Sander Brienen

    <fo:simple-page-master master-name="first" page-height="29.7cm"
page-width="21cm" margin-top="0cm" margin-bottom="0cm" margin-left="1cm"
margin-right="3.1cm">
      <fo:region-body margin-top="3.6cm" margin-bottom="1.4cm"
margin-left="2.5cm" margin-right="0cm"/>
      <fo:region-before precedence="true" extent="3.6cm"
region-name="header-first"/>
      <fo:region-after precedence="true" extent="1.4cm"
region-name="footer-first" />
      <fo:region-start extent="2.5cm" region-name="margin-first"/>
    </fo:simple-page-master>
    <fo:simple-page-master master-name="rest" page-height="29.7cm"
page-width="21cm" margin-top="0cm" margin-bottom="0.1cm" margin-left="1cm"
margin-right="3.1cm">
      <fo:region-body margin-top="5.5cm" margin-bottom="1.5cm"
margin-left="2.5cm" margin-right="0cm"/>
      <fo:region-before precedence="true" extent="5.5cm"
region-name="header-rest"/>
      <fo:region-after precedence="true" extent="1.4cm"
region-name="footer-rest" />
      <fo:region-start extent="2.5cm" region-name="margin-rest"/>
    </fo:simple-page-master>
    <fo:page-sequence-master master-name="basicPSM">
      <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"/>
        <!-- recommended fallback procedure
        <fo:conditional-page-master-reference master-reference="rest"/>-->
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>


--

"The future is bright for those who see it"
Jim Rohn
 


================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en 
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht 
onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en 
de afzender direct te informeren door het bericht te retourneren. 
================================================
The information contained in this message may be confidential 
and is intended to be exclusively for the addressee. Should you 
receive this message unintentionally, please do not use the contents 
herein and notify the sender immediately by return e-mail.



Re: strange behaviour of footers

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Brienen, SJP (Stefan) wrote:
> First I did the normal thing, that is defining the after-regions without a
> region-name attribute and defining 1 static-content referencing
> xsl-region-after. The generated PDF document gives me a footer on the first
> page, and for the rest of the pages on every even page.
> 
> Second I tried to name the after-regions as in the code-snippet below. I
> then defined two static-contents with the same content, referencing the
> named region. In this case a footer is displayed on the first page and then
> on every odd page.

Your footer has too much content. Look at the error messages,
there should be a "some static content did not fit the area"
somewhere.
Either delete some content from the footer, or increase the extent.

J.Pietschmann