We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank for your inquiry. You can use PageCount, please see the following link:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.document.pagecount.html

Best regards,