Forum


Replies: 1   Views: 409
Is it possible to use a docx template that has files attached ?
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 rstoeber  · 16-02-2023 - 22:39

We allow our customers to create their own template / docx files containing pre-defined "tags" that get replaced with data from our database. All of that has been working great for years.

Today for the first time someone tried to attach a file to their template / docx file before uploading it to us. Apparently, this is some kind of insurance certificate that contains signatures, so they have to include that as is with the document. The file is a PDF stored on their computer and it seems like they can "attach" it to a normal Word document.

Can phpdocx preserve that kind of attached file as we replace variables in the docx template, and then convert that to a PDF ?