获取PPT中的word文档数和幻灯片数 [英] get word document count and number of slides count in PPT

查看:34
本文介绍了获取PPT中的word文档数和幻灯片数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获取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** 我遵循了以下过程,它很有效,我很高兴,下面是我遵循的过程,希望对某人有所帮助

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆