[xwiki-users] Customize pdffooter.vm to include "Page X of Y"
I want to customize the pdffooter.vm so the export will say: "Page X of Y" at the bottom of each page X = the current pagenumer Y = the pagecount $msg.Page of What do I need to replace ??? with? -- View this message in context: http://xwiki.475771.n2.nabble.com/Customize-pdffooter-vm-to-include-Page-X-o... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 11/22/2013 08:28 AM, Hamster wrote:
I want to customize the pdffooter.vm so the export will say:
"Page X of Y" at the bottom of each page
X = the current pagenumer Y = the pagecount
$msg.Page of
What do I need to replace ??? with?
That's not something that easy to do, since the number of pages is only known when rendering the FO file. Here's an example of how it could be done: http://phenotips.org/PhenoTips/PatientSheetCode?xpage=edit&editor=object&classname=XWiki.PDFClass&property=fopxsl&x-maximized=TEXTAREA[id=%27XWiki.PDFClass_0_fopxsl%27] Notice the <!-- Change the footer --> and the <!-- Add an ID to the whole page sequence, to be able to get the total number of pages --> templates. -- Sergiu Dumitriu http://purl.org/net/sergiu
participants (2)
-
Hamster -
Sergiu Dumitriu