PHP – Get number of pages in a Word document

ms-word, php

Is there a way to count number of pages using PHP for existing Word documents?

I appreciate for the help.

Thanks

Best Solution

You need a library that can read Word docs. I recommend: http://www.phplivedocx.org/ You'll also need the Zend Framework: http://framework.zend.com/

I'm sure there are many more libraries available, but I find this to be the most current and well maintained.