在PPT中获取Word文档数量和幻灯片数量 [英] get word document count and number of slides count in PPT
问题描述
是否可以获取Word文档中的页数或ppt中的幻灯片数.
Is it possible to get the number of pages in word document or number of slides in a ppt.
我已经对此进行了大量研究,我急切地寻找解决方案.我看到很难在Linux服务器上的PHP中完成它.
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.
我也可以使用Java,但是有可能.我检查了apache POI库,但是它将同时适用于PPT,PPTX,doc和docx.
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.
推荐答案
要获取doc,docx,ppt和pptx的元数据属性,例如页数,幻灯片数**USING PHP**
,我按照以下过程进行了操作,并且很喜欢魅力和iam非常高兴,下面是我遵循的过程,希望它对某人有帮助
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
经过测试,您可以在PHP脚本中执行此命令.谢谢.
once tested you can execute this comman in PHP script. Thanks.
这篇关于在PPT中获取Word文档数量和幻灯片数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!