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

Free Support Forum - aspose.com

Support a blank page in each section

In my project has a requirement that if page count in a section is odd, then insert a blank page.
How can I implement this ?


Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your interest in Aspose.Words. Unfortunately, Aspose.Words doesn’t have the possibility to know a count of pages in the section. Aspose.Words document represents content and formatting of a document, not its layout into lines and pages. This feature is called pagination and it is not released yet. Please see FAQ for more information.

Best regards.

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Sorry I missed to tell you. You can use SectionStart.EvenPage. For example try using the following code:

Document doc = new Document(@"Test183\in.doc");

foreach (Section sect in doc.Sections)


sect.PageSetup.SectionStart = SectionStart.EvenPage;



Best regards.