I've created a large (~ 1000 pages) word document using the openxml-sdk. When i open it the first time using the word application, it shows "Word is renumbering the pages of test.docx" in the statusbar and does so for about 15 seconds. I've made a german screenshot of this behaviour. After this step the document is changed and need to be saved. The new version of the file is about two times in size of the original one.
The document is saved the first time by simply calling
document.SaveAs("someFilePath");
What exactly is this behaviour? How can i renumber the pages in (or after) the creation of the document programmatically?