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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 4:13 PM To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 02/16/2005 02:48 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: printing page numbers
Thanks John, I will try this code out and let you know how it works. Jaysheel. -Original Message- From: john farrow [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:27 PM To: [EMAIL PROTECTED] Subject: Re: printing page numbers last-page is used to identify a block which appears on the last page of the document, like this: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page margin=2.5cm fo:region-body margin-bottom='2.5cm' region-name=body background-color=#cc/ fo:region-after extent='2cm' region-name=footer background-color=#dd/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=page fo:static-content flow-name=footer fo:block this is the page footer, the page number is fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:block /fo:static-content fo:flow flow-name=body fo:blockThis will be on page one/fo:block fo:block break-before=page This will be on page two /fo:block fo:block id=last-page/ /fo:flow /fo:page-sequence /fo:root John Farrow Ibex PDF Creator - High speed scalable XSL-FO Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand phone +64 4 479 1738 fax +64 4 479 1294 web http://www.xmlpdf.com/ibex.html - Original Message - From: Jaysheel Bhavsar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 12:10 PM Subject: RE: printing page numbers Dear Manoj, Can you explain what you code does? I am very new to XSL-FO. Can you explain where I should place this code in my xsl sheet, what is last-page Is it a reserve word that keep counts of how many pages it has processed at a given point? Also the code you sent me will it work as is? Thank you. Jaysheel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 4:36 PM To: [EMAIL PROTECTED] Subject: Re: printing page numbers Yes you can do that. You need to check usage for fo:block id=last-page/ , fo:page-sequence fo:page-number-citation ref-id=last-page/ Thanks Manoj Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: printing page numbers 02/15/2005 01:29 PM Please respond to fop-user Hi, I was wondering if I can have Page 1 of 10 printed at the bottom of the page instead of just printing Page 1. One thing is that I don't know how many pages I will have in the pdf, since my content is populated dynamically. Any ideas? If any one have a sample code that will be great. Thank you Jaysheel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: printing page numbers
On Feb 15, 2005, at 1:29 PM, Jaysheel Bhavsar wrote: Hi, I was wondering if I can have Page 1 of 10 printed at the bottom of the page instead of just printing Page 1. One thing is that I don't know how many pages I will have in the pdf, since my content is populated dynamically. Any ideas? If any one have a sample code that will be great. Thank you Jaysheel. This is a FAQ: http://xml.apache.org/fop/faq.html#fo-total-pages which actually points to: http://xml.apache.org/fop/fo.html#fo-total-pages If the explanation is not enough for you, let us know how we can change it to make it better. Cheers! Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: printing page numbers
Try out display-align ... Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: RE: printing page numbers 02/16/2005 12:48 PM Please respond to fop-user 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: printing page numbers
No that didn't work either, any other ideas? Jaysheel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 4:00 PM To: [EMAIL PROTECTED] Subject: RE: printing page numbers Try out display-align ... Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: RE: printing page numbers 02/16/2005 12:48 PM Please respond to fop-user 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: printing page numbers
Try adding spaces before the Page x of y by using fo:inline#160;#160;#160;#160;#160;#160;#160;#160;/fo:inline fo:inline text-align=endPage fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:inline Let me know Manoj Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: RE: printing page numbers 02/16/2005 01:00 PM Please respond to fop-user No that didn't work either, any other ideas? Jaysheel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 4:00 PM To: [EMAIL PROTECTED] Subject: RE: printing page numbers Try out display-align ... Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: RE: printing page numbers 02/16/2005 12:48 PM Please respond to fop-user 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED
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 [EMAIL PROTECTED] 02/16/2005 02:48 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: printing page numbers
Yes you can do that. You need to check usage for fo:block id=last-page/ , fo:page-sequence fo:page-number-citation ref-id=last-page/ Thanks Manoj Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: printing page numbers 02/15/2005 01:29 PM Please respond to fop-user Hi, I was wondering if I can have Page 1 of 10 printed at the bottom of the page instead of just printing Page 1. One thing is that I don't know how many pages I will have in the pdf, since my content is populated dynamically. Any ideas? If any one have a sample code that will be great. Thank you Jaysheel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: printing page numbers
Dear Manoj, Can you explain what you code does? I am very new to XSL-FO. Can you explain where I should place this code in my xsl sheet, what is last-page Is it a reserve word that keep counts of how many pages it has processed at a given point? Also the code you sent me will it work as is? Thank you. Jaysheel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 4:36 PM To: [EMAIL PROTECTED] Subject: Re: printing page numbers Yes you can do that. You need to check usage for fo:block id=last-page/ , fo:page-sequence fo:page-number-citation ref-id=last-page/ Thanks Manoj Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: printing page numbers 02/15/2005 01:29 PM Please respond to fop-user Hi, I was wondering if I can have Page 1 of 10 printed at the bottom of the page instead of just printing Page 1. One thing is that I don't know how many pages I will have in the pdf, since my content is populated dynamically. Any ideas? If any one have a sample code that will be great. Thank you Jaysheel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: printing page numbers
last-page is used to identify a block which appears on the last page of the document, like this: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page margin=2.5cm fo:region-body margin-bottom='2.5cm' region-name=body background-color=#cc/ fo:region-after extent='2cm' region-name=footer background-color=#dd/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=page fo:static-content flow-name=footer fo:block this is the page footer, the page number is fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:block /fo:static-content fo:flow flow-name=body fo:blockThis will be on page one/fo:block fo:block break-before=page This will be on page two /fo:block fo:block id=last-page/ /fo:flow /fo:page-sequence /fo:root John Farrow Ibex PDF Creator - High speed scalable XSL-FO Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand phone +64 4 479 1738 fax +64 4 479 1294 web http://www.xmlpdf.com/ibex.html - Original Message - From: Jaysheel Bhavsar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 12:10 PM Subject: RE: printing page numbers Dear Manoj, Can you explain what you code does? I am very new to XSL-FO. Can you explain where I should place this code in my xsl sheet, what is last-page Is it a reserve word that keep counts of how many pages it has processed at a given point? Also the code you sent me will it work as is? Thank you. Jaysheel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 4:36 PM To: [EMAIL PROTECTED] Subject: Re: printing page numbers Yes you can do that. You need to check usage for fo:block id=last-page/ , fo:page-sequence fo:page-number-citation ref-id=last-page/ Thanks Manoj Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: printing page numbers 02/15/2005 01:29 PM Please respond to fop-user Hi, I was wondering if I can have Page 1 of 10 printed at the bottom of the page instead of just printing Page 1. One thing is that I don't know how many pages I will have in the pdf, since my content is populated dynamically. Any ideas? If any one have a sample code that will be great. Thank you Jaysheel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]