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

Free Support Forum - aspose.com

How to determine if table will placed placed towards bottom of the page?


I am building a document from scratch. I need to know if just the beginning of my content will fit on the page because it will be placed towards the bottom. If that's the case I'd like to start a new page. So how do I determine where the current end of a document is on the current page?

Thank you!


Thanks for your inquiry. Please note that MS Word document is flow document and does not contain any information about its layout into lines and pages. Therefore, technically there is no “Page” concept in Word document. Pages are created by Microsoft Word on the fly.
Aspose.Words uses our own Rendering Engine to layout documents into pages. Please check using the DocumentLayoutHelper sample from the offline samples pack. This sample demonstrates how to easily work with the layout elements of a document and access the pages, lines, rows, spans etc.

Hope this helps you. Please let us know if you have any more queries.