just to clarify that above example works from command line
i have saved
<?php
require_once 'phpdocx/classes/CreateDocx.inc';
$docx = new 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' => 'on',
'font' => 'Arial'
);
$docx->addText($text, $paramsText);
$docx->createDocx('example_text');
//$html = file_get_contents('Letterhead.html');
//$docx->embedHTML($html);
//$docx->createDocx("phpdocx_embedHTML.docx");
$docx->transformDocx('example_text.docx', 'example_text.html');
$docx->transformDocx('example_text.docx', 'example_text.pdf');
in php_docx.php
and run as
php php_docx.php and it converts files as it should but it is not working via web app.
my guess is it is failing soem point at passthru command. what are my option to debug and send you the logs?
Thanks