PHP,文档阅读库

标签 php

我需要一个库来从文档(doc、doxc、pdf、html、rtf、odt ......)中提取文本。是否有一个库(适用于所有文档类型)用于此目的?

最佳答案

使用其中一种将文件批量转换为一种格式

odtphp http://www.odtphp.com/index.php?i=tutorials&p=tutorial1

PyODConverter(使用 PHP 命令行可执行工具运行它以使其“与”php 一起工作)http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html

然后通过任何通用 pdf2txt 库或 phpOCR 运行最后的结果。

关于PHP,文档阅读库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4683618/

相关文章:

php - 无法打开流 : No such file of directory in. .. PHP fopen

php - Redis 上的 "Connection Refused"错误

php - MySQL在数据范围内计数周期

javascript - 读取 ajax post 响应时遇到问题

php - 使用 PEAR 包 Horde_Text_Diff

php - index.php 默认不加载

php - move_uploaded_file() 给出所有者/组错误

php mysql getTable 函数不可能吗?

PHP preg_replace : How can I match something but not replace it?

php - 为什么准备好的语句似乎没有(再次)绑定(bind)结果?