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

Free Support Forum - aspose.com

pdf.PageCount

I am trying to generate a report of files contained in a directory.

One aspect of the report is to give a page count for each file.

pdf.PageCount is not available until after save so I am not sure how to achieve this. Any ideas appreciated.

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

If you need to obtain the page count of already created file, please try using Aspose.Pdf.Kit and refer to:

http://www.aspose.com/Products/Aspose.Pdf.Kit/Api/Aspose.Pdf.Kit.PdfFileInfo.NumberofPages.html

Or

http://www.aspose.com/Products/Aspose.Pdf.Kit/Api/Aspose.Pdf.Kit.PdfViewer.PageCount.html

If you need more help, please let us informed.