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

Free Support Forum - aspose.com

Delete page from Document

We are you using aspose.word in java for converting document into text.

Can we put some page count limit while converting so that too long document can be avoided form conversion

Is there any way that i can able to convert first 10 pages only, or I can delete pages from document



Hi Rchilli,

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
and “Line” concept in Word document.

Aspose.Words uses our own Rendering Engine to layout documents into pages. The Aspose.Words.Layout namespace provides
classes that allow to access information such as on what page and where
on a page particular document elements are positioned, when the document
is formatted into pages. Please read about LayoutCollector and
LayoutEnumerator from here:

In your case, I suggest you please check the attached “documentLayoutHelper” example project. This sample demonstrates how to easily work with the layout elements of a document and access the pages, lines, spans etc. Hope this helps you. Please let us know if you have any more queries.