Hi coffeemist,

I tested your code. It works some of the pdf files, but it doesn't work for the pdf files that contain all the images. It returns page count 0. I need to determine page count in user uploaded pdf files either in php or perl. Any help will be greatly appreciated.

Thank you very much!

Amy