I am using the Aspose word library to count how many pages are there in a docx document. However, the page count was different while I used the getPageCount() function under Windows 10 and Linux Ubuntu
Document doc = new Document(sDocxFileName);
pageCount = this.doc.getPageCount();
The docx file was created by adobe Acrobat DC from a pdf file.
The function returns the correct page count 11 but it’s returns 21 under Linux.
I think there might be an encoding issue under two different OS.