這篇文章主要介紹了php通過(guò)baihui網(wǎng)API實(shí)現(xiàn)讀取word文檔并展示的相關(guān)資料,需要的朋友可以參考下
項(xiàng)目中遇到一個(gè)小問(wèn)題,想實(shí)現(xiàn)php 如何讀取word文檔,并將其內(nèi)容原樣顯示
可以 使用API 可以看看baihui.com 的寫寫應(yīng)用 的API
申請(qǐng)一個(gè) APPKEY 就能使用,你可以看看 ... 對(duì)免費(fèi)版本有限制
比如 excel 支持,可以參考我這個(gè) appkey是我申請(qǐng)的,可以使用吧 ...
保存成本地的一個(gè)html文件 打開(kāi)后直接使用
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>測(cè)試百會(huì)格格遠(yuǎn)程API</title>
- </head>
- <body>
- <form action="http://gege.baihui.com/remotedoc.im?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>
以上所述就是本文的全部?jī)?nèi)容了,希望大家能夠喜歡。
新聞熱點(diǎn)
疑難解答