Forum


Replies: 12   Views: 3390
Existing chart and merged documents
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 admin  · 10-04-2018 - 17:00

Hello,

You can find an example on the same API page and all options explained. From this page:

source: Path to the docx.

target: Path to the resulting docx.

You just need to set the template with the DOCX to be changed as source, the output DOCX as target and the last option (data) is an array with the new data. We recommend you to check the example available on the API page, that is the same than the included in the package (exmaples folder).

Regards.