Ecrion Software Inc. Homepage
Forum Home Forum Home > XF Designer > Bugs and New Features
  New Posts New Posts RSS Feed: Page-position="last" supported?
  FAQ FAQ  Forum Search   Register Register  Login Login

Page-position="last" supported?

 Post Reply Post Reply
Author
Message / View First Unread Post
JohnOakTree View Drop Down
Newbie
Newbie


Joined: 12 Aug 2009
Location: Portland, OR
Posts: 6
Post Options Post Options   Quote JohnOakTree Quote  Post ReplyReply Direct Link To This Post Topic: Page-position="last" supported?
    Posted: 24 Sep 2009 at 1:33pm

Guys, we're trying to change the footer on the last page of the PDF doc we are creating. Nothing seems to help.

I see where you don't support page-position="last". Is this coming soon or should we keep looking for a work-around?

Do you have a work-around?

Here's our attempt to use it:


<!-- toggles footer messages   -->
 <fo:page-sequence-master master-name ="Ballot-Sections">
        <fo:repeatable-page-master-alternatives>

<fo:conditional-page-master-reference
               master-reference ="xsl-even-pages"   
            odd-or-even="even"/> 
<fo:conditional-page-master-reference
               master-reference ="xsl-odd-pages"
               odd-or-even="odd"/>  
<fo:conditional-page-master-reference
               master-reference ="xsl-last-page"
               page-position="last"/>  

       </fo:repeatable-page-master-alternatives> 
 </fo:page-sequence-master>

It never uses the xsl-last-page formats.


John Schmitt
Back to Top
admin View Drop Down
Admin Group
Admin Group


Joined: 19 May 2008
Posts: 68
Post Options Post Options   Quote admin Quote  Post ReplyReply Direct Link To This Post Posted: 24 Sep 2009 at 2:38pm
Hello,
The way this works is that the last page has to be generated using a blank page. In the example below the last page will be pink:


<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0">
     <fo:layout-master-set>
          <fo:simple-page-master master-name="Letter Page" page-width="8.5in" page-height="11in">
               <fo:region-body region-name="xsl-region-body" margin="0.7in"/>
               <fo:region-before region-name="xsl-region-before" display-align="after" extent="0.7in"/>
               <fo:region-after region-name="xsl-region-after" display-align="before" extent="0.7in"/>
               <fo:region-start region-name="xsl-region-start" extent="0.7in"/>
               <fo:region-end region-name="xsl-region-end" extent="0.7in"/>
          </fo:simple-page-master>
          <fo:simple-page-master master-name="LastPageLayout" page-width="8.5in" page-height="11in">
               <fo:region-body region-name="xsl-region-body" margin="0.7in" background="pink"/>
               <fo:region-before region-name="xsl-region-before" display-align="after" extent="0.7in"/>
               <fo:region-after region-name="xsl-region-after" display-align="before" extent="0.7in"/>
               <fo:region-start region-name="xsl-region-start" extent="0.7in"/>
               <fo:region-end region-name="xsl-region-end" extent="0.7in"/>
          </fo:simple-page-master>
          <fo:page-sequence-master master-name="ComplexMaster1">
               <fo:repeatable-page-master-alternatives maximum-repeats="no-limit">
                    <fo:conditional-page-master-reference master-reference="LastPageLayout" page-position="last"/>
                    <fo:conditional-page-master-reference master-reference="Letter Page"/>
               </fo:repeatable-page-master-alternatives>
          </fo:page-sequence-master>
     </fo:layout-master-set>
     <fo:page-sequence master-reference="ComplexMaster1" force-page-count="end-on-even">
          <fo:static-content flow-name="xsl-region-before" font-size="12pt" font-family="Times">
               <fo:block> </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-after" font-size="12pt" font-family="Times">
               <fo:block> </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-start" font-size="12pt" font-family="Times">
               <fo:block> </fo:block>
          </fo:static-content>
          <fo:static-content flow-name="xsl-region-end" font-size="12pt" font-family="Times">
               <fo:block> </fo:block>
          </fo:static-content>
          <fo:flow flow-name="xsl-region-body" font-family="Times" font-size="12pt">
               <fo:block> </fo:block>
          </fo:flow>
     </fo:page-sequence>
</fo:root>
Back to Top
JohnOakTree View Drop Down
Newbie
Newbie


Joined: 12 Aug 2009
Location: Portland, OR
Posts: 6
Post Options Post Options   Quote JohnOakTree Quote  Post ReplyReply Direct Link To This Post Posted: 24 Sep 2009 at 5:05pm
So the solution is to print one more (additional) page than the actual end of the document you are creating?
 
That doesn't seem to match the example in Dave Pawson's book (pages 54-59) on page sequences:
 
Am I understanding his example wrong? I just want to change the footer on the last printed page.
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz

This page was generated in 0.109 seconds.