Forum


Replies: 1   Views: 24
How to create a document from a template with the content of the file ( not a link to the file)

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,