使用PHP从doc读取数据,xls文件 [英] Read data from doc, xls files with PHP

查看:149
本文介绍了使用PHP从doc读取数据,xls文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以从doc和xls文件中读取数据,并将
读取的内容放入图像文件(创建文档的页面样本)。例如
我有我想要我的客户购买的文件。所以我需要自动创建像我的文件样本的小图像。

I wonder is it possible to read data from doc and xls files and put the readed content into image files(create page samples of the document). For example I have documents that I want my customers to buy. So I need automatically to create little images like samples of mine documents.

您的帮助将不胜感激。

推荐答案

对于从xls文件读取,我真的可以推荐 PHPExcel 真的是简单但功能强大的工具:)至于doc我不幸的是没有给你很好的推荐。但是我确信这里有一些很好的东西。

For reading from xls files I can really recommend PHPExcel whic is a really simple, but powerful tool:) As for doc I unfortunatly got no good recommandation for you. But I'm sure there's something good out there.

编辑:使用终端命令找到一行使用一行代码阅读文档文件的快速解决方案,可能无法覆盖所有的需求,但以为值得一提。请注意,这只适用于doc,而不是docx。 从PHP阅读文档

Found a quick little solution to reading doc-files with one line of code using terminal commands, might not cover all your needs, but thought it was worth a mention. Note that this is only for doc, not docx. Read doc from PHP

这篇关于使用PHP从doc读取数据,xls文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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