0
I have a docx file, model of a contract. In it, the buyer’s data and other data are variable. The PHP system needs to get database information and replace in the model docx file. That is, maintain the main structure and replace only a few words. After, save the word and make available for download.
I have seen some libraries that do this, where you can define variables and make these substitutions. However, I don’t remember the name nor how to do.
Someone who could help me? With resources I can use and/or small examples?
Example: The document has a fixed paragraph. In this paragraph, a variable word will be defined at the time of generating the file and after customizing the template, it should be saved in docx.
I haven’t read it all, but here’s what helps: https://stackoverflow.com/questions/9891712/opentbs-mail-merging-docx-using-php
– Rogério Dec
That’s exactly what it was! Thank you so much!
– Developer1903