Re: [xep-support] Placing special footers on last page?

From: Alexander Peshkov (
Date: Fri Mar 12 2004 - 02:09:21 PST

  • Next message: Alexander Peshkov: "Re: [xep-support] Error when searching in a pdf File"

    Hello Tim,

    I can suggest a following workaround: instead of using a
    static-content for the last footer, place it into the footnote at the
    end of the actual content so it will be placed at the bottom of the
    last content bearing page - not on the automatically added blank page.

    Best regards,
    Alexander Peshkov

    DTS> I have created several page sequences in the FO source. We have a requirement to have a special header for the first page and a special footer for the last page for each page sequence. So I
    DTS> created a page-sequence-master as follows:

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

    DTS> Also to support duplex printing, for each page sequence, I have set force-page-count attribute to "even" so that the next page sequence would start from the odd page. I found an extra page is
    DTS> added as desired if the total page number for the page sequence is an odd number. But my last page footer is printed on the blank page as it assumes the blank page as the last page for the
    DTS> sequence. Is there a way to have the last page footer printed on the second last page if a blank page is added at the end?

    DTS> Attached is an example showing the problem: It's a modified form of one of the XEP example FO files.

    DTS> Thanks,

    DTS> Tim Dean
    DTS> Principal Software Engineer
    DTS> Guidant Corporation
    DTS> 4100 Hamline Avenue N, MS E-222
    DTS> St. Paul, MN 55112
    DTS> Telephone: (651) 582-4791 Fax: (651) 582-7484
    DTS> Tim.Dean at

    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service

    This archive was generated by hypermail 2.1.5 : Fri Mar 12 2004 - 02:20:34 PST