Forum


Replies: 5   Views: 2849
Template and additional table
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  · 18-01-2017 - 15:48

Hello,

If you call load a template and then call addTable, the table is added after all existing contents.

You can add WordFragments in the template after or before any existing content:

http://www.phpdocx.com/api-documentation/docx-path/insert-elements-in-docx

Or replace a placeholder by a WordFragment:

http://www.phpdocx.com/api-documentation/templates/replace-variable-word-fragment-Word-document

This WordFragment can be a table, a list, a paragraph, an image... almost any Word content.

Regards.