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 "H. krishna" <ba...@yahoo.com> on 2003/02/08 11:42:46 UTC
Page numbering
Hai,
i don't need the page number in the first page only.
but, want to second page start like "2".
Immediate response is highly appreciated.
Regards,
Balakrishnan
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Page numbering
Posted by "J.Pietschmann" <j3...@yahoo.de>.
H. krishna wrote:
> i don't need the page number in the first page only.
> but, want to second page start like "2".
That's a variant of this FAQ:
http://xml.apache.org/fop/faq.html#faq-N10532
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Page numbering
Posted by Oleg Tkachenko <ol...@multiconn.com>.
H. krishna wrote:
> i don't need the page number in the first page only.
> but, want to second page start like "2".
That's XSL-Fo basics actually. You have to have different page masters
for the first page and for the rest ones and put page master only on the
second master. See Dave's book for example
http://www.dpawson.co.uk/xsl/sect3/bk/ch05.html#d0e1448.
--
Oleg Tkachenko
Multiconn Technologies, Israel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: Page numbering
Posted by "H. krishna" <ba...@yahoo.com>.
thanks all.
Regards,
H. Balakrishnan
--- Patrick Dean Rusk <Pa...@attbi.com> wrote:
> > > now, the pagenumber is not displayed in the
> first
> > > page.
> > >
> > > But, i need the page number start with 2 page is
> left
> > > alignment and 3 page is right alignment.
> >
> > The same way, create different page masters for
> even and odd pages.
>
> That's right. Extend my example to have page
> masters for firstPage,
> otherPageEven, otherPageOdd. Changed the named
> header regions to
> firstPage-before, otherPageEven-before, and
> otherPageOdd-before. Then use
> the "odd-or-even" in the
> conditional-page-master-reference element to
> distinguish them.
>
> Here's an updated fragmentary example:
>
> <fo:layout-master-set>
>
> <fo:simple-page-master master-name="firstPage">
> <fo:region-before region-name="firstPage-before"/>
> <fo:region-body/>
> </fo:simple-page-master>
>
> <fo:simple-page-master master-name="otherPageOdd">
> <fo:region-before
> region-name="otherPageOdd-before"/>
> <fo:region-body/>
> </fo:simple-page-master>
>
> <fo:simple-page-master master-name="otherPageEven">
> <fo:region-before
> region-name="otherPageEven-before"/>
> <fo:region-body/>
> </fo:simple-page-master>
>
> <fo:page-sequence-master master-name="contents">
> <fo:repeatable-page-master-alternatives>
> <fo:conditional-page-master-reference
> master-reference="firstPage"
> page-position="first"/>
> <fo:conditional-page-master-reference
> master-reference="otherPageOdd"
> odd-or-even="odd"
> page-position="any"/>
> <fo:conditional-page-master-reference
> master-reference="otherPageEven"
> odd-or-even="even"
> page-position="any"/>
> </fo:repeatable-page-master-alternatives>
> </fo:page-sequence-master>
>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="contents">
>
> <fo:static-content flow-name="firstPage-before">
> <fo:block>
> Look! No page number here.
> </fo:block>
> </fo:static-content>
>
> <fo:static-content flow-name="otherPageOdd-before">
> <fo:block text-align="right">
> p. <fo:page-number/>
> </fo:block>
> </fo:static-content>
>
> <fo:static-content
> flow-name="otherPageEven-before">
> <fo:block text-align="left">
> p. <fo:page-number/>
> </fo:block>
> </fo:static-content>
>
> <fo:flow flow-name="xsl-region-body">
> <fo:block>
> Body text.
> </fo:block>
> </fo:flow>
>
> </fo:page-sequence>
>
>
> Pat
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: Page numbering
Posted by Patrick Dean Rusk <Pa...@attbi.com>.
> > now, the pagenumber is not displayed in the first
> > page.
> >
> > But, i need the page number start with 2 page is left
> > alignment and 3 page is right alignment.
>
> The same way, create different page masters for even and odd pages.
That's right. Extend my example to have page masters for firstPage,
otherPageEven, otherPageOdd. Changed the named header regions to
firstPage-before, otherPageEven-before, and otherPageOdd-before. Then use
the "odd-or-even" in the conditional-page-master-reference element to
distinguish them.
Here's an updated fragmentary example:
<fo:layout-master-set>
<fo:simple-page-master master-name="firstPage">
<fo:region-before region-name="firstPage-before"/>
<fo:region-body/>
</fo:simple-page-master>
<fo:simple-page-master master-name="otherPageOdd">
<fo:region-before region-name="otherPageOdd-before"/>
<fo:region-body/>
</fo:simple-page-master>
<fo:simple-page-master master-name="otherPageEven">
<fo:region-before region-name="otherPageEven-before"/>
<fo:region-body/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="contents">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
master-reference="firstPage"
page-position="first"/>
<fo:conditional-page-master-reference
master-reference="otherPageOdd"
odd-or-even="odd"
page-position="any"/>
<fo:conditional-page-master-reference
master-reference="otherPageEven"
odd-or-even="even"
page-position="any"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="contents">
<fo:static-content flow-name="firstPage-before">
<fo:block>
Look! No page number here.
</fo:block>
</fo:static-content>
<fo:static-content flow-name="otherPageOdd-before">
<fo:block text-align="right">
p. <fo:page-number/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="otherPageEven-before">
<fo:block text-align="left">
p. <fo:page-number/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>
Body text.
</fo:block>
</fo:flow>
</fo:page-sequence>
Pat
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Page numbering
Posted by Oleg Tkachenko <ol...@multiconn.com>.
H. krishna wrote:
> now, the pagenumber is not displayed in the first
> page.
>
> But, i need the page number start with 2 page is left
> alignment and 3 page is right alignment.
The same way, create different page masters for even and odd pages.
--
Oleg Tkachenko
Multiconn Technologies, Israel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: Page numbering
Posted by "H. krishna" <ba...@yahoo.com>.
Dear Patrick Rusk,
Thanks all of your comments.
now, the pagenumber is not displayed in the first
page.
But, i need the page number start with 2 page is left
alignment and 3 page is right alignment.
Immediate replay is highly appreciated.
Regards,
Balakrishnan
--- Patrick Dean Rusk <Pa...@attbi.com> wrote:
> The key is in having a different header (or footer)
> on the first page versus
> the others. The steps to do this are:
>
> 1) Have a separate page master for the first page
> versus the rest of the
> pages.
>
> 2) Add different region-names to the header (or
> footer) regions on those
> pages.
>
> 3) Use the repeatable-page-master-alternatives
> feature to invoke the proper
> page masters for the first versus the other pages.
>
> 4) In your actual page sequence, define the contents
> of the header (or
> footer) regions to include the page number on in the
> "other pages" header
> region.
>
> Here's a fragmentary example:
>
> <fo:layout-master-set>
>
> <fo:simple-page-master master-name="firstPage">
> <fo:region-before region-name="firstPage-before"/>
> <fo:region-body/>
> </fo:simple-page-master>
>
> <fo:simple-page-master master-name="otherPage">
> <fo:region-before region-name="otherPage-before"/>
> <fo:region-body/>
> </fo:simple-page-master>
>
> <fo:page-sequence-master master-name="contents">
> <fo:repeatable-page-master-alternatives>
> <fo:conditional-page-master-reference
> master-reference="firstPage"
> page-position="first"/>
> <fo:conditional-page-master-reference
> master-reference="otherPage"
> page-position="any"/>
> </fo:repeatable-page-master-alternatives>
> </fo:page-sequence-master>
>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="contents">
>
> <fo:static-content flow-name="firstPage-before">
> <fo:block>
> Look! No page number here.
> </fo:block>
> </fo:static-content>
>
> <fo:static-content flow-name="otherPage-before">
> <fo:block>
> The page number is <fo:page-number/>
> </fo:block>
> </fo:static-content>
>
> <fo:flow flow-name="xsl-region-body">
> <fo:block>
> Body text.
> </fo:block>
> </fo:flow>
>
> </fo:page-sequence>
>
> Hope this helps.
>
> Patrick Rusk
>
>
> -----Original Message-----
> From: H. krishna
> [mailto:balakrishnan_h_78@yahoo.com]
> Sent: Saturday, February 08, 2003 5:43 AM
> To: fop-user@xml.apache.org
> Subject: Page numbering
>
>
> Hai,
>
>
> i don't need the page number in the first page only.
> but, want to second page start like "2".
>
> Immediate response is highly appreciated.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: Page numbering
Posted by Patrick Dean Rusk <Pa...@attbi.com>.
The key is in having a different header (or footer) on the first page versus
the others. The steps to do this are:
1) Have a separate page master for the first page versus the rest of the
pages.
2) Add different region-names to the header (or footer) regions on those
pages.
3) Use the repeatable-page-master-alternatives feature to invoke the proper
page masters for the first versus the other pages.
4) In your actual page sequence, define the contents of the header (or
footer) regions to include the page number on in the "other pages" header
region.
Here's a fragmentary example:
<fo:layout-master-set>
<fo:simple-page-master master-name="firstPage">
<fo:region-before region-name="firstPage-before"/>
<fo:region-body/>
</fo:simple-page-master>
<fo:simple-page-master master-name="otherPage">
<fo:region-before region-name="otherPage-before"/>
<fo:region-body/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="contents">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
master-reference="firstPage"
page-position="first"/>
<fo:conditional-page-master-reference
master-reference="otherPage"
page-position="any"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="contents">
<fo:static-content flow-name="firstPage-before">
<fo:block>
Look! No page number here.
</fo:block>
</fo:static-content>
<fo:static-content flow-name="otherPage-before">
<fo:block>
The page number is <fo:page-number/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>
Body text.
</fo:block>
</fo:flow>
</fo:page-sequence>
Hope this helps.
Patrick Rusk
-----Original Message-----
From: H. krishna [mailto:balakrishnan_h_78@yahoo.com]
Sent: Saturday, February 08, 2003 5:43 AM
To: fop-user@xml.apache.org
Subject: Page numbering
Hai,
i don't need the page number in the first page only.
but, want to second page start like "2".
Immediate response is highly appreciated.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org