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 Torsten <To...@net-linx.com> on 2005/01/12 11:50:08 UTC

Footer only on last page

Hello all,

is there a possibility to print a page footer only on the last page of
a (possibly) multipage document.
I dont know if there is a page break in the production process.

ThanX
-- 
Best regards,
 Torsten                          mailto:Torsten.Erler@net-linx.com

Re: Footer only on last page

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Torsten wrote:
> is there a possibility to print a page footer only on the last page of
> a (possibly) multipage document.

Common suggestions
1. Use a footnote at the end of the flow:
  <fo:flow ...>
    ... content ...
    <fo:block><fo:footnote><fo:inline/><fo:footnote-body
     ... footer content ...
    </ ...close elements...
The footer wiil be printed in the body region, which should
be acceptable if there aren't any other foters and the region-after
extent can be set to zero. Note that this will malfunction if the
last page becomes too fuill to display the footer content.

2. Use a marker at the end of the flow:
  <fo:flow ...>
    ... content ...
    <fo:block><fo:marker marker-classname="last-footer> ...
and retrieve the marker in the static content for region-after.

> I dont know if there is a page break in the production process.

Can you explain why this may be a problem in your case?

J.Pietschmann

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