How can LiveDocx in PHP be used to read .doc & .docx files and read the text inside it and save it in HTML?

Say we have .doc and .docx files. I want to use LiveDocx in PHP to upload files, read content, and delete text from the inside. Then save it in an HTML string.

Can this be done?

I was looking for documentation and it seams that LiveDocx only downloads .doc and .docx template files!

+3
source share
4 answers

I think you can find what you need in this example .

, , , "", , .doc/.docx. .

0

, TextControl, phpLiveDocx TextControl

, pdf doc docx

0

LiveDocX, , . - , mailmerge, .

, :

1) Set the source document as a local template
2) Combine the dummy field with the dummy content
3) Extract your document as HTML
4) Use the server side script page to remove the html and leave only the content (something like, delete everything between the HEAD tags, and then strip_tags) 5) You should leave your content as a simple string - I'm not sure if this will be too meaningful, but it can be useful for creating something like search indexes.

0
source

Source: https://habr.com/ru/post/1779225/


All Articles