get word document count and number of slides count in PPT

纵然是瞬间 提交于 2019-12-04 06:45:33

问题


Is it possible to get the number of pages in word document or number of slides in a ppt.

I have done a lot of research on it and i am desperately looking for solution. I saw that it is very difficult to get it done in PHP on linux server.

I would be ok with Java also, but is it possible. I checked the apache POI library, but would it work for both PPT, PPTX, doc and docx.

I am rigorously searching for some solution but i am unable to get one. Any help would be really really appreciated.


回答1:


To get meta data properties of doc,docx,ppt and pptx like number of pages, number of slides **USING PHP** i followed the following process and it worked liked charm and iam so happy, below is the process i followed , hope it helps someone

**Download and configure Apache Tika.**

once its done you could try executing the following commadn it will give 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 this comman in PHP script. Thanks.



来源:https://stackoverflow.com/questions/22990348/get-word-document-count-and-number-of-slides-count-in-ppt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!