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

Free Support Forum - aspose.com

Get Current Page Number from word document using JAVA

Hi team,

Requesting a work around solution to get the current page number from word document using JAVA.

Regards
Priya Dharshini J P

@priyadharshini,

Thanks for your inquiry. Please use LayoutCollector.GetStartPageIndex method to get 1-based index of the page where node begins. Returns 0 if node cannot be mapped to a page. You can pass the current node to this method. Hope this helps you.

If you still face problem, please share some more detail about your use case. We will then provide you more information on this.