DocumentBuilder version: 7.4.0
OS:Linux
I want to generate word through builder API, generate multiple sections at the same time and insert page number in the footer, but the default inserted page number is continuous, I found a method that can be set from 1 on the page, but not found in builder API. Can the builder API achieve the same effect?
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("This is a new paragraph.");
oParagraph.AddLineBreak();
oParagraph.AddText("Scroll down to see the new section.");
oParagraph.AddPageNumber();
var oSection = oDocument.CreateSection(oParagraph);
oSection.SetType("nextPage");
oParagraph.AddText("This is a paragraph in a new section");
oParagraph.AddPageNumber();
oDocument.Push(oParagraph);
var oParagraph1 = Api.CreateParagraph();
oParagraph1.AddText("This is a paragraph in a new section");
oParagraph1.AddPageNumber();
var oSection1 = oDocument.CreateSection(oParagraph);
oSection1.SetType("nextPage");
oDocument.Push(oParagraph1);