Hi,
I’ve been searching for a way to count pages in my word documents, but all I could find was either not reliable (like DocumentBuiltInProperties) or only available on .NET platform.
Is there a way to reliably count the pages of the resulting document, which I created by merging multiple documents? (in Java!!!)
I’m using Aspose.Words 2.7.0
Kind regards,
Mile
Hi
Thanks for your request. Unfortunately, there is no way to get number of pages in the document using Aspose.Words for java. MS Word document is flow document and does not contain any information about its layout into lines and pages. So, to get number of pages in the document we should layout document into pages. This feature is only available in .NET version of Aspose.Words.
https://reference.aspose.com/words/net/aspose.words/document/pagecount/
Hopefully, this feature will be also supported in java version somewhere in the second half of this year.
Best regards