Forum


Replies: 5   Views: 3331
Generatepdf - lists/tables
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 garyhillerson  · 11-04-2013 - 12:13

Unfortunately, the plugin is not generating any output.

I changed the code to:
$docx = new CreateDocx();
$docx->enableCompatibilityMode();
$text = "Here's some text to put into the file";
$paramsText = array( 'b' => 'single', 'font' => 'Arial' );
$docx->addText($text, $paramsText);
$docx->createDocx('gTemp1');
$docx->transformDocx('gTemp1.docx', 'gTemp1.pdf');
echo("JUST GENERATED PDF FILE gTemp1.pdf");

The file gtemp1.docx gets created, but no .pdf document is created anywhere on my server.

SAME THING happens when i run the phpdocx/examples/advanced/Transform.php example program. It generates the docx file, but no pdf file is generated anywhere.

Please help.