Samples phpdocx - Catalog

Sample code - Catalog

This document is based on a template, a DOCX file which contains one or multiple placeholders (variables) to be replaced by content; for example a text, an image, HTML, or a graphic chart.

To work with templates you need to use the class CreateDocxFromTemplate, which provides all necessary methods to modify documents. We've created both pages of this document with templates and then merged them with the method mergeDocx.

You can find more information regarding the mentioned methods in the Documentation section.