4

With respect to the topic:

How to get the number of pages in a Word Document on linux?

has anyone been successful with .doc files (.docx are resolved)?

Community
  • 1
  • 1
Dimitris
  • 41
  • 3
  • There was a [question on ask Ubuntu about `.docx` to `.doc` conversion](http://askubuntu.com/questions/161665/how-to-convert-docx-to-doc-with-terminal). If you could do that, then the answer for `.docx` would suffice. – Orbling Sep 25 '13 at 17:05
  • Note the [accepted answer](http://stackoverflow.com/a/9103304/438971) to the question you quote has an answer for the 97-2003 format `.doc` files following the answer for `.docx`. – Orbling Sep 25 '13 at 17:06
  • Thank you Orbling, but the accepted answer is unfinished regarding .doc files. – Dimitris Sep 25 '13 at 17:15
  • Annoyingly both the links for the file structure are dead too - so you'll need to find that first before you can write something to do it yourself. – Orbling Sep 25 '13 at 17:16
  • Maybe a more novel approach - find a Word to PDF converter, then there are various PDF tools that can tell you the number of pages. Quite slow though that will be. – Orbling Sep 25 '13 at 17:19
  • I've added comments to the accepted answer on where exactly the page count can be found, with documentation. – Orbling Sep 25 '13 at 17:37
  • 1
    Thank you Orbling, really helpful comment! I am on it... – Dimitris Sep 25 '13 at 18:07

2 Answers2

1

I made a program in Java executable jar you Download it from below mentioned URL, It will extract page numbers from multiple doc or docx.

http://www.mediafire.com/download/qe1jkdf8807v5y7/Word_Page_Counter.jar

-1

Normally, if you have a .doc open in MS Word or another office application like LibreOffice, there is a status bar at the bottom of the window. At the left side in Libre is the page count, for example: Page 1 of 7 Can't recall if it is exactly the same in Word, but certainly somewhere on that status bar.

Gurupal singh
  • 136
  • 1
  • 3
  • 10