Home  >  Article  >  php教程  >  php通过baihui网API实现读取word文档并展示,

php通过baihui网API实现读取word文档并展示,

WBOY
WBOYOriginal
2016-06-13 09:00:08997browse

php通过baihui网API实现读取word文档并展示,

项目中遇到一个小问题,想实现php 如何读取word文档,并将其内容原样显示

可以 使用API 可以看看baihui.com 的写写应用 的API

申请一个 APPKEY 就能使用,你可以看看 ... 对免费版本有限制

比如 excel 支持,可以参考我这个 appkey是我申请的,可以使用吧 ...
保存成本地的一个html文件 打开后直接使用

word 的类似

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试百会格格远程API</title>
</head>
<body>
<form action="http://gege.baihui.com/remotedoc.im&#63;apikey=079c6475174c7a46351260ed35e54ecd&output=editor" target="_self" enctype="multipart/form-data" method="post">
上传文件: <input type="file" name="content" site="38"/>
<input type="hidden" name="filename" value="my.xls,my.xlsx" />
<input type="hidden" name="saveurl" value="http://vai.com" />
<input type="hidden" name="id" value="21012145" />
<input type="hidden" name="format" value="xlsx" />
<input type="hidden" name="persistence" value="true" />
<input type="submit" value="提交" />
</form>
</body>
</html>

以上所述就是本文的全部内容了,希望大家能够喜欢。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn