Hi,
This is not adding a page break, but a section break. When you keep sections, as your code does, it keeps the section for the document.
You can use continuous sections for the document, which will keep the same formatting, but not include a page break. I am not sure of the details to change the section break for the entire document to be a ‘continuous’ section break, but it should be possible.
If not possible, it would be easy to go into the document after the fact, and alter the section breaks to be ‘continuous’ section breaks. It is a matter of 20 lines of code to do this.
In order to find out the changes you want to make, generate a document that includes the section breaks that force a page break, save it. Copy it, and alter the copy so that each section is a ‘continuous’ section break. Then use the Open XML SDK productivity tool to compare the two. This will identify the changes to the markup that you need to make.
Then you can write code to make the same changes to your result document, after DocumentBuilder is done doing its thing.
Look at screen-cast #13 in the following series:
Introduction to Open XML
-Eric