title: Programatically get pages count in Microsoft Word documents on linux
body: <p>I need to get pages count from word documents. I've tested many libraries and scripts (apache poi, perl scripts, some application for linux and some more) and the only working solution was to install Microsoft Office with Wine and access OLE with perl. I've managed to do it but it seems I can't use it on server due to licensing problems...</p>
  
  <p>The problem with apachepoi and other solutions providing access to word documents info is related to incompleteness of some docs. pageCount property in document summary is sometimes missing (it's often case with odt documents saved as doc and older docs).</p>
  
  <p>Is there any way to actually count pages (not only get info from summary) without installing Microsoft Office on server?</p>