Forum


Replies: 3   Views: 3575
Slow document generation from template using tables and replacevariablebyhtml
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 dthomas41  · 28-07-2015 - 02:23

We are currently evaluating phpdocx for replacing paper forms. The solution so far involves a ~15 page template containing mostly tables. Each cell contains parsed HTML data which will eventually come from ckeditor web forms. We're using replaceTableVariable and replaceVariableByHTML, so this is possibly not the most efficient way of using templates. Currently my code takes 30+ seconds to generate a document. We are using the demo version to decide whether the product is worth purchasing. What sort of performance improvement, if any, would be expected with the full version? I noticed that most of the execution time comes from StyleParser and DOMDocument