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

Free Support Forum - aspose.com

Incorrect Page and Table Count

I am working on parsing the attached file and having some difficulties getting back the correct number of pages and table counts using the Document PageCount and Document GetChildNodes(NodeType.Table,true).

For me, when I try to check how many pages its returns, it says 2. Also, it only returns one table. In the attached document there are 60+ pages and just as many tables. I am using Aspose.Words 10.7 but do not have a proper license installed. Our trial version has run out. Is this one of the limitations of using the API without a proper license?

Thanks for any guidance you can give.

-Mike Thomas

Hi Michael,

Thank you for inquiry. First off, please try to use the latest version at your end and see if it resolves your issue. Moreover, i did not observe this problem on my end.

PageCount: 68
NodesCount: 64

If you want to test new version of Aspose.Words without the evaluation version limitations before renewing your license, you can request a 30-day Temporary License. Please refer to
https://purchase.aspose.com/temporary-license

I hope this will help.

Thanks for the quick reply.
I upgraded my version to the latest one. However I am still not getting the correct page number. Please take a look at the following code snippet:

public int getPageCount(String source)
{
    Document doc = new Document(source);
    return doc.PageCount; 
} 

Is the correct usage?

Update** After I got a temporary license, everything seems to be working just fine.
As an aside, do you have anywhere on your site where it talks about limitations if you don’t have a valid license? If not, that sure would be helpful!!!
Thanks again!

Hi Mike,

Thanks for your inquiry.

Sure, you can find this information in the documentation here: https://docs.aspose.com/words/net/licensing/

If we can help with anything else, please feel free to ask.

Thanks,