Free Support Forum - aspose.com

Detect visible elements on the page

Hi,


How to detect does page have ANY visible elements?

Hi Philo,


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, spans etc.

Regarding visible contents in the document, please use Fon.Hidden property to detect hidden or visible contents in the document. This property return False if the font is formatted as visible text. Please let me know if I can be of any further assistance.