Posted by a ceTe Software moderator
Hello,
The DynamicPDF Merger for .Net library does not have the capability to automatically modify or delete the page numbers that already exist on the PDFs that are being merged. You can add new page numbers to the final document as shown in the code below.
MergeDocument document = new MergeDocument("documentb.pdf");
document.Append("documenta.pdf");
PageNumberingLabel pageNumberingLabel = new PageNumberingLabel("Page %%CP%% of %%TP%%", 0, 680, 512, 12, Font.Helvetica, 12, TextAlign.Center);
Template template = new Template();
template.Elements.Add(pageNumberingLabel);
document.Template = template;
document.Draw("final.pdf");
Thanks,
ceTe Software Support Team