Find current page number in Words

Hi Team,
Currently we are using Aspose Words 15.9 version, we would like to get the current page number in word document. The requirement is to create the Barcode based on the current page number. Could you please guide us how to achieve this.

@ari132497 MS Word documents are flow by their nature, so there is no “page” concept. Consumer applications reflows document content into pages on the fly. Aspose.Words has it’s own layout engine to build document layout. You can use LayoutCollector to determine page index where the particular node is located.

Okay thanks @alexey.noskov.

1 Like