在PHP中将.doc转换为html [英] Convert .doc to html in php

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

问题描述

有没有人找到一个好的类或其他文件,将.doc文件转换为html或我可以读取并转换为html的东西?

我现在一直在寻找几个小时,并且只能找到需要msword才能转换文件的服务器。我非常确定这不是一种选择,但我并没有真正与我的主机提供商讨论过它。



目标是让用户能够上传文件我的服务器和服务器处理转换,然后将其显示为html,就像googles视图为html功能一样。 解决方案

intall并使用abiword,如下所示:

  AbiWord --to = html archivo.doc 

你可以从php调用这个命令。

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?

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.

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.

解决方案

intall and use abiword, like this:

AbiWord --to=html archivo.doc

you can call this command from php.

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

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