Replies: 13   Views: 4551
Very slow / maximum execution time addtemplatevariable with table of >50 rows
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  · 11-04-2013 - 12:13


Phpdocx uses Xpath and DOM to add new content on templates (lists and tables), so each new replacement needs more resources. We're working on improvements related to this feature.

A quick solution is to add a single placeholder (like $VAR_TABLE$), use phpdocx to create a table (addTable) and replace the placeholder within the WordML generated by phpdocx.