Codeigniter LiveDocx

Using Nusoap, I’ve put together a simple example of how to convert a word docx to txt in codeigniter php. I’ve left error checking out etc just to keep it simple. Its once again one of those “You build on it for you own usage” snippets.

This function converts to txt then just adds a simple <p> wrapper around paragraphs. I put this into a custom file manager for TinyMCE, and it allows clean embedding of a word document to the editor.

And you can grab the Codeigniter Nusoap library from here: nusoap-codeigniter
And a zipped clean version of the PHP snippet above from here: mswordfunction

Hopefully this helps people.
Check out http://www.livedocx.com/ for information on grabbing a free user account, and to read the API.

Tags: , , , , ,

3 Responses to “Codeigniter LiveDocx”

  1. You may be interested in the following article that I have just published. It takes a look at using LiveDocx in PHP without the Zend Framework, nor any further 3rd party libraries.

    http://www.phplivedocx.org/articles/using-livedocx-without-the-zend-framework/

  2. Similarly, the following article takes a deeper look at using LiveDocx with NuSOAP:

    http://www.phplivedocx.org/articles/using-livedocx-with-nusoap/

  3. sonuku says:

    Thanks for the cross-site love!

Leave a Reply