Register Lost your password?
Full api documentation: full api documentation FREE version full api documentation PRO version

public function generateXHTML()

return

  • string


Examples

Example 1


require_once 'classes/TransformDoc.inc';

$document = new TransformDoc();
$document->setStrFile('Text.docx');
$document->generateXHTML();
$document->validatorXHTML();
echo $document->getStrXHTML();

    4 Responses

  • se

    hi,this script have some issue:
    Warning: ZipArchive::getFromName() [ziparchive.getfromname]: Invalid or unitialized Zip object in E:\webSite\other\php5\classes\cTransformDoc.inc on line 91

    Notice: Trying to get property of non-object in E:\webSite\other\php5\classes\cTransformDoc.inc on line 93

    Warning: Invalid argument supplied for foreach() in E:\webSite\other\php5\classes\cTransformDoc.inc on line 93

    Warning: ZipArchive::getFromName() [ziparchive.getfromname]: Invalid or unitialized Zip object in E:\webSite\other\php5\classes\cTransformDoc.inc on line 124

    Notice: Trying to get property of non-object in E:\webSite\other\php5\classes\cTransformDoc.inc on line 126

    Warning: Invalid argument supplied for foreach() in E:\webSite\other\php5\classes\cTransformDoc.inc on line 126

  • Martin

    se:

    It’s because you upload a doc (not a docx)

  • Kasparas

    First, many thanks! The class works just great! One question, is there a possibility to work with 2003-2007 word documents? Or just docx?

    As I open ant print contents of the .docx file everything is file, while opening .doc gives lots of errors?

    Kasparas

  • beerwin

    Headings are not converted to h1, h2, etc. when converting from docx to xhtml

Your comments