Free Support Forum - aspose.cloud

Update page setup sections for all sections of the document

Hi @tilal.ahmad,

I want to apply “SectionStart”: “Continuous” for all pages of the documents. How can I do that?

The request URL determines that I need to indicate sectionIndex. How can I change it to apply this config to all sectionIndex of my document?

Thanks!

https://api.aspose.cloud/v4.0/words/1.docx/sections/0/pageSetup

@gbastian

You can achieve this by getting first the sections count using GetSections API method. And then update the page setup of each section one by one in a loop.