To get meta data properties of doc
, docx
, ppt
and pptx
like number of pages, number of slides I followed the following process and it worked liked a charm. Hope it helps someone:
Download and configure
Apache Tika
Once its done you could try executing the following commands, to get all the meta data about your file:
java -jar tika-app-1.5.jar -m test.docx
java -jar tika-app-1.5.jar -m test.doc
java -jar tika-app-1.5.jar -m test.pptx
java -jar tika-app-1.5.jar -m test.ppt
Once tested you can execute these commands in a PHP script. Thanks.