We use Aspose.Words version 18.5
For some documents it returns different amount of pages on Ubuntu and Win10, and neither of them is correct.
Our original doc contains 34 pages.
Document document = new Document(/input stream with document/);
int count = document.getPageCount();
count is 12 on my local machine with Windows 10 v.1703 (without license) and 36 on server on Ubuntu v16.04 (with license)
This error occurred only for one file out of 1000, but file looks ok and can be opened in MS Word.
File is in attachment.
ughandbook2015-16.zip (120.6 KB)