Php uses the javashui API to read and display Word documents.
This article mainly introduces php's use of javashui APIs to read and display Word documents.
A small problem occurs in the project. If you want to implement php to read the word document and display its content as is, you can use the API to view the APPKEY written by mongohui.com, you can see... restrictions on free versions
For example, for excel support, you can refer to my application for this appkey. You can use it...
Save the cost of opening an html file and use it directly
Word is similar
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<! 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> test the Remote API of baihuigege </title> </Head> <Body> <Form action = "http://gege.baihui.com/remotedoc.im? Apikey = 079c6475174c7a46351260ed35e54mcm & output = editor "target =" _ self "enctype =" multipart/form-data "method =" post "> Upload file: <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 = "submit"/> </Form> </Body> </Html> |
The above is all the content of this article. I hope you will like it.