Forum


Replies: 3   Views: 3441
Import from word doc
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 andrwsv  · 30-07-2013 - 00:44

hi i have Pro+ but when I insert header to document .docx this put the header but clean the information of this document? why?



I have this code:



$code='123456789';

$archivo='../files/Text.docx'



$docx = new CreateDocx();

$docx->addHeader('CodeNumber : '.$code, $paramsHeader);

$docx->addDOCX($archivo);


$docx->modifyPageLayout('A3');

$docx->setDefaultFont('Arial');

$docx->setLanguage("es-ES");

$docx->createDocxAndDownload($archivo_destino);