@benestom I suppose you are talking about list numbering, not about page numbering. numbering start number is controlled by ListLevel.StartAt property. If you use Document.ExtractPages method to split your document into pages, Aspose.Words take care about the correct list item numbering, so it has the same numbering as in source document. For example see the following simple code:
Document doc = new Document(@"C:\Temp\in.docx");
// Extract 7th page
Document subDoc = doc.ExtractPages(6, 1);
subDoc.Save(@"C:\Temp\out.docx");
in.docx (13.9 KB)
out.docx (11.1 KB)
As you can see in the output document Heading list numbering starts from seven.
If you actually need to convert list numbering into regular text, you can achieve this using code like the following:
Document doc = new Document(@"C:\Temp\in.docx");
// Update list labels.
doc.UpdateListLabels();
// Get all paragraphs, which are list items
List<Paragraph> listItems = doc.GetChildNodes(NodeType.Paragraph, true).Cast<Paragraph>()
.Where(p => p.IsListItem).ToList();
// Convert list items into regular paragraphs with leading text that imitates numbering.
foreach (Paragraph item in listItems )
{
string label = item.ListLabel.LabelString + "\t";
Run fakeListLabelRun = new Run(doc, label);
item.ListFormat.RemoveNumbers();
item.PrependChild(fakeListLabelRun);
}
doc.Save(@"C:\Temp\out.docx");
FYI @eduardo.canal