Forum


Replies: 4   Views: 4013
Docx to html trubble with lists
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by jorgelj  · 14-08-2013 - 11:00

Hello,



You need to instanciate TransformDocAdv.inv class and invoke transformDocument method. You just need to set the correct output as:



transformDocument('document.docx', 'document.html')



Please read included phpdoc:



/**

     * Transform DOCX to PDF, ODT, SXW, RTF, DOC, TXT, HTML or WIKI

     *

     * @access public

     * @param $docSource

     * @param $docDestination

     * @param string $tempDir

     * @param array $options :

     *      · method : 'direct' (default), 'script' ; 'direct' method uses

     *                  passthru and 'script' uses a external script.

     *                  If you're using Apache and 'direct' doesn't work use 'script'

     *      · 'odfconverter' : true (default) or false . Use odf-converter.

     * @return void

     */



Regards.