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

Free Support Forum - aspose.cloud

Define Page Margins When Converting HTML to DOCX


Is there any way to define the page margins as part of the HTML body when using the /v4.0/words/convert endpoint?

Or must we always make at least two requests (one to /convert, and another to the /words/online/put/sections/{sectionIndex}/pageSetup endpoint) to update the margins of the generated DOCX file?

Thank you!


Yes, your understanding is correct; you need to use a separate API call to set the margins of a document section.

1 Like

Thank you very much for the confirmation!

1 Like