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

Free Support Forum - aspose.com

Convenient way to add a Section

Hi there,
i want to split one Section, so that i can add a Section in between of this splitted Section that has a different Page Orientation. The properties of the Page itself should first of all stay the same. So i want to have the Section as is for all previous Nodes, then one Node in a new Section and after that a Section Break again that contains the Nodes after…
Is there some convenient way to do so?

greetings Rob


Thanks for your inquiry. Please check following documentation link for working with sections. Hopefully it will help you to accomplish the task. However if you face any issue then please share your sample input documents and expected output document. We will look into it and will guide you accordingly.

  • [Working with Sections]


Please feel free to contact us for any further assistance.

Best Regards,

Thanks for the quick answer.
apparently in this section it is mainly described, how to clone a section and e.g. add a new section to the end of the document.
In my case i have an existing document, where i have to split an existing section, which is not really described in the docs…


Thanks for your inquiry. You can use DocumentBuilder class to move cursor to a particular position in Document and then simply insert section break:


Hope, this helps.

Best regards,
Awais Hafeez