PHP可以从PowerPoint文件中读取文本吗? [英] Can PHP read text from a PowerPoint file?

查看:82
本文介绍了PHP可以从PowerPoint文件中读取文本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让PHP阅读(上载的)PowerPoint演示文稿,并从每张幻灯片中最少提取文本(获取更多信息,例如图像和布局可能会更好,但是我现在只解决文本问题).

I want to have PHP read an (uploaded) powerpoint presentation, and minimally extract the text from each slide (grabbing more info like images and layouts would even be better, but I would settle for just the text at this point).

我知道Google应用程序在其演示文稿应用程序中完成了该操作,因此我猜想有某种方法可以翻译powerpoint二进制文件,但是我似乎找不到任何有关如何执行此操作的信息.

I know that google apps does it in its presentation app, so I am guessing there is some way to translate the powerpoint binary, but I can't seem to find any info on how to do it.

有什么想法可以尝试吗?

Any ideas on what to try?

谢谢-

推荐答案

我想对此发布解决方案.

I wanted to post my resolution to this.

不幸的是,我无法使PHP可靠地读取二进制数据.

Unfortunately, I was unable to get PHP to reliably read the binary data.

我的解决方案是编写一个小型的vb6应用程序,该程序通过自动执行PowerPoint来完成工作.

My solution was to write a small vb6 app that does the work by automating PowerPoint.

不是我想要的,但是现在可以解决问题.

Not what I was looking for, but, solves the issue for now.

话虽这么说,Zend选项似乎在某个时候可能是可行的,所以我会注意的.

That being said, the Zend option looks like it may be viable at some point, so I will watch that.

谢谢.

这篇关于PHP可以从PowerPoint文件中读取文本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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