转换为.doc文件为纯文本 [英] Convert to .doc file to plain text

查看:99
本文介绍了转换为.doc文件为纯文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何使用PHP将.doc文件转换为纯文本.我需要代码.

Hi
How to convert .doc file to plain text using PHP. I need code.

推荐答案

这是一个堆栈溢出问题,可帮助您入门:

http://stackoverflow.com/questions/188452/reading-writing- a-ms-word-file-in-php [ ^ ]

一旦能够阅读Word文档,您只需要将其写出到文本文件即可.

这将不是一个容易的过程,也不是一个完全准确的过程.您会接近的,但是如果您能获得100%准确的完全有效的解决方案,我会感到震惊.转换Word文档并不简单,而在php中进行转换则变得更加困难.
Here is a Stack Overflow question that will get you started:

http://stackoverflow.com/questions/188452/reading-writing-a-ms-word-file-in-php[^]

Once you are able to read the Word document, you just need to then write it out to a text file.

This will not be an easy process, nor will it be a completely accurate process. You will get close but I would be shocked if you ever got a fully-working solution that was 100% accurate. Converting Word documents is not simple, and doing it in php makes it tougher.


这篇关于转换为.doc文件为纯文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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