Forum


Replies: 4   Views: 3988
Dynamically create template with html
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  · 21-08-2014 - 06:21

Hello, All documents are templates in phpdocx. So you can create a new document, and then open it as a template. There's the class CreateDocxFromTemplate to do this; the signature of this method is: /** * Construct * @param string $docxTemplatePath path to the template we wish to use * @param array $options * The available keys and values are: * 'preprocessed' (boolean) if true the variables will not be 'repaired'. Default value is false * @access public */ public function __construct($docxTemplatePath, $options = array()) { Regards.