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 Jaysheel Bhavsar <jb...@HostMySite.com> on 2005/02/17 16:13:54 UTC

RE: printing page numbers (closed)

Hi guys,
  Thanks so much for helping. I got it. It worked when I moved the
Text-align to the fo:block for some reason I tried everything with
fo:inline but it did not work.

Thanks again.

Jaysheel.

-----Original Message-----
From: JBryant@s-s-t.com [mailto:JBryant@s-s-t.com] 
Sent: Wednesday, February 16, 2005 4:13 PM
To: fop-user@xml.apache.org
Subject: RE: printing page numbers

Move the text-align property to the fo:block element (and you can then 
remove the inline wrapper, since text-align is its only attribute).

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




"Jaysheel Bhavsar" <jb...@HostMySite.com> 
02/16/2005 02:48 PM
Please respond to
fop-user@xml.apache.org


To
<fo...@xml.apache.org>
cc

Subject
RE: printing page numbers






Hi,
   Here is part of my xsl sheet it is working fine, I get it to display
page 1 of x. Now the problem I am running into is I cannot align my text
for some reason. I have tried "end" and "right" but my text "page 1 of
x" always stays on the left. Is there something I am missing. Is this
because its in the footer of the page?

--------------------------------------
fo:layout-master-set>
            <!-- layout for the first page -->
            <fo:simple-page-master
               master-name="test"
               page-height="11in"
               page-width="8.5in"
 
margin-bottom="0.25in"
                                                    margin-top="0.25in"
               >
                          <fo:region-before extent="1.5cm"/>
               <fo:region-body margin-top="0.2in"/>

                                                    <fo:region-start 
extent="1.0in"/>
                                                    <fo:region-end 
extent="0.3in"/>
 
                                                    <fo:region-after 
extent='1.0cm'
region-name="footer"/>
 
            </fo:simple-page-master>
         </fo:layout-master-set>

<fo:page-sequence master-reference="test" initial-page-number="1">

            <!-- usage of page layout -->
            <!-- header -->
                                                 <fo:static-content 
flow-name="footer">
                          <fo:block font-family="Helvetica" 
font-size="7pt">
 <fo:inline text-align="end">
                             Page <fo:page-number/>
                             of
                             <fo:page-number-citation
ref-id="last-page"/>
 </fo:inline>
                          </fo:block>
                                                  </fo:static-content>
 
                                                 <fo:flow 
flow-name="xsl-region-body">
                <fo:block>
                  <xsl:apply-templates/>
                </fo:block>
 
 
<fo:block 
id="last-page"/>
            </fo:flow>
 
         </fo:page-sequence>


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




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


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