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 "Bargel, Britta" <bb...@actis.de> on 2003/03/28 10:06:19 UTC
Problem with conditional-page-master-reference
Hello,
I want to have a document where the first page and the middle pages have no
static-content at the foot, only the last page should have one.
I have got a XML-file with data which will fit on three pages. The first one
is ok, but the second one has a footer like the last.
Anyone can help me?
Britta Bargel
My implementation is the following.
<fo:layout-master-set>
<fo:simple-page-master master-name="firstPage"
margin-left="14mm"
margin-right="6mm"
margin-top="10mm"
margin-bottom="10mm"
page-height="297mm"
page-width="210mm">
<fo:region-body margin-top="12mm" />
<fo:region-before extent="12mm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="middlePage"
margin-left="14mm"
margin-right="6mm"
margin-top="10mm"
margin-bottom="10mm"
page-height="297mm"
page-width="210mm">
<fo:region-body margin-top="12mm" />
<fo:region-before extent="12mm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="lastPage"
margin-left="14mm"
margin-right="6mm"
margin-top="10mm"
margin-bottom="10mm"
page-height="297mm"
page-width="210mm">
<fo:region-body margin-top="12mm"
margin-bottom="35mm"/>
<fo:region-before extent="12mm"/>
<fo:region-after extent="35mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="document">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
master-reference="firstPage" page-position="first"/>
<fo:conditional-page-master-reference
master-reference="lastPage" page-position="last"/>
<fo:conditional-page-master-reference
master-reference="middlePage" page-position="rest"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
I need to work with the static-content because of a frame around the
contents of the body. If I work with footnote and the contents of the
footnote is smaller than 35mm I get an space between the frame around the
body content and the frame around the foot content.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Problem with conditional-page-master-reference
Posted by Jeremias Maerki <de...@greenmail.ch>.
You've got a problem there: FOP doesn't support page-position="last".
This is tricky to implement and hasn't been done, yet. You will need to
find another way to get what you want.
If it's only about the frame around your content you may want to try an
absolutely positioned block-container to paint the frame. I've done
something similar with SVG last year.
Good luck.
On 28.03.2003 10:06:19 Bargel, Britta wrote:
> I want to have a document where the first page and the middle pages have no
> static-content at the foot, only the last page should have one.
>
> I have got a XML-file with data which will fit on three pages. The first one
> is ok, but the second one has a footer like the last.
>
> Anyone can help me?
<snip/>
> <fo:conditional-page-master-reference
> master-reference="lastPage" page-position="last"/>
<snip/>
> I need to work with the static-content because of a frame around the
> contents of the body. If I work with footnote and the contents of the
> footnote is smaller than 35mm I get an space between the frame around the
> body content and the frame around the foot content.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org