Returns Wrong pageCount

I want to calculate the pages in document but the aspose giving wrong count for the some documents.

I am using following code :
Document doc = new Document(filePath);
doc.updateWordCount();
doc.updateFields();
doc.updateListLabels();
doc.updatePageLayout();
pageCount = doc.getBuiltInDocumentProperties().getPages() (or) doc.getPageCount();

checking both getPageCount and builtInProps.getPages but both are returning same value which is wrong. I am using Aspose.Words.14.1. please suggest me how to get the correct pageCount value from aspose. i am adding the problemetic document.

Hi there,

Thanks for your inquiry. I have tested the scenario using latest version of Aspose.Words for Java 14.12.0 and have not found the shared issue. Please use Aspose.Words for Java 14.12.0 and let us know if you have any more queries.

Hi Kapil,

Thanks for sharing the detail. I have tested
the scenario and have managed to reproduce the same issue at my side.
For the sake of correction, I have logged this problem in our issue
tracking system as WORDSNET-11339. I have linked this forum thread to
the same issue and you will be notified via this forum thread once this
issue is resolved.

We apologize for your inconvenience.

Hi Tahir,
We tested this scenario without calling updatePageLayout method, it gives correct page count, but for some other documents it gives wrong count. May be the issue with updatePageLayout method, please find it.

Thanks
-kapil

Hi Kapil,

Thanks for sharing the detail. I have logged this detail in WORDSNET-11339. We will update you via this forum thread once this issue is resolved. Please let us know if you have any more queries.

The issues you have found earlier (filed as WORDSNET-11339) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.