Hi,
I am trying to get section page numbering, ie, I have got 3 sections, with various page numbers in each,
so, I would need for each section,
Page 1 of 3,
Page 2 of 3,
Page 3 of 3,
[next seciton]
Page 1 of 2.
Page... of ... etc etc:
I convering from a word document, in which I insert the follow in the header:
builder.Write("page $p of $P");
I then loop though each section, and try the following code:
for (int i = 0; i < secCount; i++) {
//
Aspose.Pdf.Section sec = pdfX.Sections;
sec.IsPageNumberRestarted = true;
sec.StartingPageNumber = 1;
The result is not as expected: I get the correct current page number, but the total number of pages is for the whole document, and not the current section.
We hold a Aspose.Total license, and really need a quick solution to this.
Kind Regards
Danny Winbourne