问题描述
有没有人找到一个好的类或其他文件,可以将 .doc 文件转换为 html 或我可以阅读并转换为 html 的内容?
Has anyone found a good class, or other file that will convert a .doc file into html or something that I can read and turn into html?
我已经环顾了几个小时,但只找到了需要在服务器上使用 msword 才能转换文件的文件.我很确定这不是一个选项,但我实际上并没有与我的托管服务提供商讨论过这个问题.
I have been looking around for a couple hours now and have only found ones that require msword on the server in order to convert the file. I am pretty sure that is not an option but I have not actually talked to my hosting provider about it.
目标是让用户能够将文件上传到我的服务器,服务器处理转换,然后将其显示为 html,就像谷歌将其视为 html 功能一样.
The goal is for a user to be able to upload the file to my server and the server handle the conversion and then display it as html, much like googles view as html feature.
推荐答案
安装并使用abiword,像这样:
intall and use abiword, like this:
AbiWord --to=html archivo.doc
你可以从php调用这个命令.
you can call this command from php.
这篇关于在 php 中将 .doc 转换为 html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)