Page header/footer in FOP
is there any way to include header/footer line to each PDF page that gets generated using FOP? The Page body will vary, causing pages to increase and I need to put the same header/footer line in all pages. Is there any possbile way to do this? -- Thanks Manjush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page header/footer in FOP
From: Manjush G. Menon [EMAIL PROTECTED] is there any way to include header/footer line to each PDF page that gets generated using FOP? The Page body will vary, causing pages to increase and I need to put the same header/footer line in all pages. Is there any possbile way to do this? This is fairly easy to achieve. Modify all your page-masters so they have a before and after region, e.g. fo:simple-page-master name=example page-width=210mm page-height=297mm margin-left=5mm margin-top=5mm margin-right=5mm margin-bottom=5mm fo:region-body margin-top=20mm margin-bottom=20mm/ fo:region-before extent=20mm/ fo:region-after extent=20mm/ /fo:simple-page-master Then in you page-sequence define two static regions with the contents of header and footer in each, e.g. fo:page-sequence master-reference=example fo:static-content flow-name=xsl-region-before fo:blockThe header/fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockThe footer/fo:block /fo:static-content fo:flow flow-name=xsl-region-body !-- your body content as usual -- /fo:flow /fo:page-sequence Chris _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Page number!! Re: Page header/footer in FOP
Hi All, **(Maybe this is an old question, don't be angry with me)* I need to know if i can put in each page (in pdf generated by FOP) the number of the current page wrt the total page of the document! In poor words i need to put a string with the following format in each page: Page 2 of N So the question is, can i know the total page generated before the end of the FOP job??? Thanks you all Felix _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page number!! Re: Page header/footer in FOP
From: Felice Angemi [EMAIL PROTECTED] I need to know if i can put in each page (in pdf generated by FOP) the number of the current page wrt the total page of the document! In poor words i need to put a string with the following format in each page: Page 2 of N This is straight forward. See http://xml.apache.org/fop/fo.html#fo-total-pages Chris _ Find a cheaper internet access deal - choose one to suit you. http://www.msn.co.uk/internetaccess - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]