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

Free Support Forum - aspose.com

Current Page number

I have a formula that requires current page number of my document as an input. Does anyone know the best way to get the current page number?

Hi Davis,

Thanks for your inquiry. Could you please share some more detail about your query and input document? We will then provide you more information about your query along with code.

Please use LayoutCollector.GetStartPageIndex method to get 1-based index of the page where node begins. Hope this helps you.

If you want to insert page number in the document, please check my reply from this post.