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 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
