Free Support Forum - aspose.com

Identifying pagebreak using Aspose java API

Hi,

I am using a Aspose words for java version 10. I have created a document with three page breaks.How to identify that page break exist after the particular content using Aspose words for java API.


Hi,

Reply for my previous Question.

Hi

Thanks for your request. PageBreak is a simple character within a Run. Please see the following link:

http://www.aspose.com/documentation/java-components/aspose.words-for-java/com/aspose/words/controlchar.html#PAGE_BREAK

Best regards,

Hi,

Thanks for your reply. Is there any way to find the presence of page break rather than searching for \f in each run content?.

Hi

Thanks for your inquiry. As a variant, you can try using DocumentVisitor to achieve this. Please follow the link to learn more about DocuemntVisitor:

http://www.aspose.com/documentation/java-components/aspose.words-for-java/com/aspose/words/documentvisitor.html

Hope this helps.

Best regards,