Posted by a ceTe Software moderator
---- Edited ----
The best way to accomplish this is to set the Page object's
ApplyDocumentTemplate property to false. This can be done to prevent the document template from appearing on any page.
---- Original Post Below ----
Hello,
In that case, you will append the first page, begin a new section and apply the template only to that section. That way the page numbering will start from Page2 onwards.
Dim MyDocument As MergeDocument = New MergeDocument
Dim documentTemplate As Template = New Template()
documentTemplate.Elements.Add( New PageNumberingLabel( _
"%%CP%% of %%TP%%", 0, 680, 512, 12, Font.Helvetica, _
12, TextAlign.Center ) )
MyDocument.Append(PDF1)
MyDocument.Sections.Begin(documentTemplate)
C# Code:
MergeDocument document = new MergeDocument();
Template documentTemplate = new Template();
documentTemplate.Elements.Add( new PageNumberingLabel(
"%%CP%% of %%TP%%", 0, 680, 512, 12, Font.Helvetica,
12, TextAlign.Center ) );
document.Append(PDF1);
document.Sections.Begin(template);
Thanks,
ceTe Software Support Team