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

Free Support Forum - aspose.com

Page Break not rendered in the word file generated through Aspose Word

Hello Support Team,

Please find attached HTML, This File Contains Page Breaks at various places in document.

We have create Page Breaks as below,


 


While generating Word from this HTML, its not creating Page Break in Word file.

If we generate using any external Word converter, it generates Page Break.

Please look into this issue, and suggest us the Work around.

Thanks

Hi Ved,


Thanks for your inquiry.

In this case, the latest version of Aspose.Words mimics the behavior of Microsoft Word 2013. Please find attached a Word document i.e generated from your HTML using Microsoft Word 2013 on my side. So, this is the expected behavior. Moreover, you can force a Page Break in Word document by using the HTML like below:

<html>

<head>

<title>Html Page Break</title>

</head>

<body>

<div>

<p>before page break</p>

<br style="page-break-before: always; clear: both" />

<p>after page break</p>

</div>

</body>

</html>


I hope, this helps.

Best regards,