How to know the number of pages based on Data- before creating PDF

Hi @
Is it possible to know how many pages the data would occupy. I want to know the number of PDF pages that will be generated and show it as an alert to User.
So is it possible to know the number of pages the PDF will be generated by just taking the data as input, without actually generating the PDF.?
Please let me know if there is any such built in method in Aspose.
Thanks in advance.

Hi

Thank for your inquiry. You can use PageCount, please see the following link:
https://reference.aspose.com/words/net/aspose.words/document/pagecount/
Best regards,