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

Free Support Forum - aspose.com

Rendering page borders

Hello everyone.

Does anyone know how to make page borders (Page Layout→Page Borders) set in docx document be displayed in html?



I’m trying to convert docx to html using Aspose.Words but with no success on solving this issue.

Hi Filonov,


Thanks for your inquiry. I suppose, you’re observing this behaviour because Html is not paginated. In your case, Aspose.Words correctly mimics the way the Microsoft Word’s Html export engine works. To confirm this, please open your DOCX file with Microsoft Word in ‘Print Layout’ document view. You will see that the ‘Page Borders’ are visible; but, when you view the same document in ‘Web Layout’ or convert this DOCX to HTML format, the borders are no longer visible. So, this is the expected behaviour. If we can help you with anything else, please feel free to ask.

Best regards,

Hi Awais,

when paginated through HtmlFixedSaveOptions borders really become visible.

Thanks for your help

Hi Filonov,


Thanks for the additional information. Yes, you are right; please let us know any time you have any further queries. We are always glad to help you.

Best regards,