Convert .doc to html in php(在 php 中将 .doc 转换为 html)
问题描述
有没有人找到一个好的类或其他文件,可以将 .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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 php 中将 .doc 转换为 html
基础教程推荐
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何替换eregi() 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
