Forum


Replies: 5   Views: 3807
Noob needs simple tut
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 edkocol  · 23-03-2015 - 20:01

Just to be clear, how would I load the base64 string contents into the conversion plugin? Like this? include_once ('phpdocx/classes/CreateDocx.inc'); $docx = new CreateDocx(); $docx->enableCompatibilityMode(); $docxfilename = "../upload/".$uploaddir.'/'.$filename; $pdffilename = "../upload/".$uploaddir.'/'.$filename.'.pdf'; $text=base64_decode($contents); $paramsText = array('b' => 'single'); $docx->addText($text, $parmsText); $docx->createDocx($docxfilename); $docx->transformDocument($docxfilename, $pdffilename); Also, does the entire conversion take place entirely on the server?