Forum


Replies: 8   Views: 4457
Transformdocument doesn't create output - v4.5
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 seb  · 04-03-2015 - 15:36

Hello, After trying all the examples and searching the forums, I can't make transformDocument() output anything. The script finishes but no transformed output is created. Example script: $docx = new Phpdocx\Create\CreateDocx(); $docx->enableCompatibilityMode(); $text = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, ' . 'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut ' . 'enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut' . 'aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit ' . 'in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' . 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui ' . 'officia deserunt mollit anim id est laborum.'; $paramsText = array( 'b' => 'single', 'font' => 'Arial' ); $docx->addText($text, $paramsText); $docx->createDocx('example_text'); $docx->transformDocument('example_text.docx', 'example_text.html'); It just takes one or two seconds to run, creates the example_text.docx file, but doesn't create the HTML file. Am I doing something wrong here? Thanks, Seb