We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Restart Page Numbering does not work


I was facing a similar problem after splitting the documents and solve by looping trhough all sections and set the page setup PageStartingNumber to 1 and RestartPageNumbering to true:

    private static void UpdatePageNumber(Document doc)
        foreach (var node in doc.Sections)
            var section = (Section)node;
            section.PageSetup.PageStartingNumber = 1;
            section.PageSetup.RestartPageNumbering = true;


Could you please ZIP and attach your input Word document along with problematic and expected output documents? We will then provide you more information on it.