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

Free Support Forum - aspose.com

Page Count Reset

I am using a 3 page Word doc. The footer has the pg numbering. During processing in some cases I remove text from the document and end up with a 2 page document, but the doc.PageCount function still returns 3. How do you reset this to pull the current number of pages?

Hi there,

Thanks for your inquiry.

You need to call Document.UpdatePagelayout to update the correct page count for that property.