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

Free Support Forum - aspose.com

Detecting page change in aspose word Java

Hi there,

I am trying to find a way to detect a page change in the word document. When converting a document to zip format, i can see a special tag <w:lastRenderedPageBreak/> as last entry whenever, a page is finished and new page is started.

Is there anyway in aspose to detect if the page is finished and new Page is started.

Note: I am not talking about Page break, that has special text and is detectable

Thanks in advance.

@aayushag85,

Thanks for your inquiry. Please use ParagraphFormat.PageBreakBefore property to check if a page break is forced before the paragraph. Please let us know if you have any more queries.