A section is a section - much like sections in Word. A section always starts on a new page. Every document needs at least one section. The contents of the section will spread over as many pages as are needed.
You can add PageBreaks to that section to force a new page.
You can set Header and Footer for every section.
To add images, add them to "section.Footers.Primary". To include the page number, add a paragraph and then call "paragraph.AddPageField()" for that paragraph.
With Headers and Footers you have FirstPage, EvenPage, and Primary. EvenPage will be used when you set MirrorMargins in the PageSetup. FirstPage will be used when you set DifferentFirstPageHeaderFooter in the PageSetup. If neither of those is set, Primary is used for all pages in the section.
There won't be blank pages unless your code forces MigraDoc to create a blank page (e.g. by adding two sections if the first section remains empty).
_________________ Regards Thomas Hoevel PDFsharp Team
|