You would probably need 3rd party libraries (Apache) to read a doc file. Even then, I'm not sure it specifies pages. I'm no expert, but doesn't it get formatted when you open it so suit your default...