![]() |
Page-position="last" supported? |
Post Reply
|
| Author | |
JohnOakTree
Newbie
Joined: 12 Aug 2009 Location: Portland, OR Posts: 6 |
Post Options
Quote Reply
Topic: Page-position="last" supported?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.
|
|
![]() |
|
admin
Admin Group
Joined: 19 May 2008 Posts: 68 |
Post Options
Quote Reply
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> |
|
![]() |
|
JohnOakTree
Newbie
Joined: 12 Aug 2009 Location: Portland, OR Posts: 6 |
Post Options
Quote Reply
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:
<fo:conditional-page-master-reference </fo:repeatable-page-master-alternatives> It never uses the xsl-last-page formats. John Schmitt |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |