Forum


Replies: 1   Views: 225
How to create a document from a template with the content of the file ( not a link to the file)
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 nonoxxxx  · 16-12-2024 - 15:44

Hello,

I 'am new to this library, and I don't find how to create a document by the content of the file ?

I 'am working on an app and we are using word template to generate some contracts while changing names and othe informations.

We are stocking these documents in the database so  they are not upladed on the server , on the PhpDocx Documentation only mention that : 

$docx = new CreateDocxFromTemplate('template.docx');

Is there a way to create the doc with the content of the file ? instead of the name/link

 

Thanks,