有没有办法使用 PHP 计算现有 Word 文档的页数?
Is there a way to count number of pages using PHP for existing Word documents?
感谢您的帮助.
谢谢
要从 PHP 中获取 doc、docx、ppt 和 pptx 的元数据属性,例如页数、幻灯片数,我遵循了以下过程,并且效果很好我很高兴,以下是我遵循的过程,希望对某人有帮助
To get meta data properties of doc,docx,ppt and pptx like number of pages, number of slides from 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.
这篇关于PHP - 获取 Word 文档中的页数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!