Hello,
I’ve noticed that document.getPageCount() alters the document itself - it adds the Page count number to the document:
Aspose.Words v24.12...document itself - it adds the page count number to the document:...expected behavior. The last page is 3, so you see 3 in the output...