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

Free Support Forum - aspose.com

Page Break

Hi can I ask whats the html tag or code that will make a page break whenever i wanted? i mean take this for example.


just to clarify
page break = new page

image 1

(so even the image is small i can move the other content in the next page)

table 1


paragraph



Thanks!

Hi Joebet,


Thanks for your inquiry. Sure, you can force a page break by using ‘page-break-before’ css attribute. Please try converting the following HTML snippet to Word format:

<html>

<head>

<title></title>

</head>

<body>

<div>

<p><img src="http://www.aspose.com/images/products/dotnet/Aspose.Words_128x128.png" width="128" height="128" alt="" /></p>

<p><span>This is a text following a small image</span></p>

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

<p><span style="font-family: Calibri; font-size: 11pt">This text should be displayed on second page in Word document</span></p>

</div>

</body>

</html>


I hope, this helps.

Best regards,

Thanks!


I Like your product keen support keep it up!

Hi Joebet,


Thanks for your feedback. In case you have further inquires or need any help, please let us know.

Best regards,