duan7664
2013-02-21 07:13
浏览 608
已采纳

PHP将Word文件转换为HTML而不会丢失样式和图像[关闭]

Is there an API for converting word files to HTML without losing the format?

Can the google documents API be used for this?

I tried saaspose but the returning result is always a server error.

Solutions that did not work for me:

图片转代码服务由CSDN问答提供 功能建议

是否有用于将Word文件转换为HTML而不会丢失格式的API? < p>谷歌文件API可以用于此吗?

我尝试了saaspose但返回的结果始终是服务器错误。

做过的解决方案 不适合我:

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

4条回答 默认 最新

  • douqiaolong0528 2013-11-01 02:20
    已采纳

    I've spent a bit of time loking into this, and the best solution that I've found was to install unoconv on the server, and using PHP to interface with it through system calls.

    I would have loved to find a good native PHP solution for this, but unfortunately I couldn't.

    Edit Since originally answering this, I've come across a web service which presents an API for converting documents. I haven't tested it very thoroughly but it does seem to produce decent results at converting Word to HTML: CloudConvert.

    评论
    解决 无用
    打赏 举报
查看更多回答(3条)

相关推荐 更多相似问题