How to Set Page Margins of Word Document with Aspose.Words Cloud REST API

Is there any way to set the docx page margins in the Cloud Words Rest Api?

Hi there,

Thanks for your inquiry. Unfortunately, Aspose.Words for Cloud does not support the requested feature at the moment. However, I have logged this feature request as SAASWORDS-151 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

Would setting the margins in the HTML on the body or html tags or anywhere else effect the margins in the conversion?

Hi there,

Thanks for your inquiry. You can use margin style as shown in following html to achieve your requirements. Hope this helps you.




body {
margin-top: 100px;
margin-bottom: 100px;
margin-right: 150px;
margin-left: 150px;
}





Some text


Some text






Hi,


Thanks for being patient. We have good news for you i.e. SAASWORDS-151 has now been resolved. You may now please re-test your scenario with Aspose.Words for Cloud. Hope, this helps.

Also, please refer to the following article:

Best regards,