Forum


Replies: 3   Views: 3440
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 dpowers  · 09-07-2013 - 04:40

hopefully i'm posting this in the right area of the forum, I just found PHPDOCx tonite and it maybe the answer to an issue I was going to start custom developing.. What I want to do is pretty simple but i'm going to create a policy repository where the end user can "subscribe" if you will to the policy number and an administrator can login to the site and update the policies.



 



My question is pretty simple but I did see where you can import a header and footer from an existing docx file, would it possible to import an entire document possibly serveral pages long then post that data to my database?


Posted by jorgelj  · 09-07-2013 - 08:26

Hello,



Yes, using PRO+, Corporate or Enterprise you'll get classes to import any content of DOCX documents and add them to other documents, like headers, footers and other content.



Regards.


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);