Multi Merge with Page X of Y

Multi Merge with Page X of Y

Forum member · Feb 7, 2007
Hi, I would like to merge several existing pdfs and have a total page x of y added to the merged pdf. I tried adding PageNumberingLabel as follows dP.Template.Elements.Add(new PageNumberingLabel("%%PR%%%%SP%% of %%ST%%", 0, 680, 512, 12, ceTe.DynamicPDF.Font.Helvetica, 12, TextAlign.Center)); but: the Y value resulted of the Total page count after each merge and not of the complete pdf. for example if i have 3 pdfs each with 10 pages then then Page X of Y resulted in: X of 10 for pages 1 -10 X of 20 for pages 11-20 X of 30 for pages 21-30 X was set to the correct value on all pages

Re: Multi Merge with Page X of Y

Support · Feb 7, 2007
Hello, The reason you are seeing this behavior is because you are using invalid tokens in the PageNumberingLabel constructor. You should be using the below syntax to accomplish you results: dP.Template.Elements.Add(new PageNumberingLabel("%%CP%% of %%TP%%", 0, 680, 512, 12, ceTe.DynamicPDF.Font.Helvetica, 12, TextAlign.Center)); This will likely solve our problem. Following is the link to the Help Documentation on our web site that shows the list of tokens for PageNumberingLabel . Thanks, ceTe Software Support Team

Re: Multi Merge with Page X of Y

Forum member · Feb 7, 2007
Thanks, that did it.