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.


Best Solution

You need a library that can read Word docs. I recommend: You'll also need the Zend Framework:

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