Forum


Replies: 7   Views: 4235
Combining addtext and createwordmlfragment consumes huge memory resource
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 gang  · 04-11-2013 - 02:57

Hi,



Thanks for your reply. Please find the following details of my system:




  • PHP: 5.5.3

  • PHPDocx: 3.3 (pro)



The array contain string value, it is a multidimensional array. I would say it is comparable to an array of size 75-100 which contain text. However, the array itself does not cause any problem when dump the content to a single variable (string) which later is used to build HTML file.



As dumping the value to HTML does not cause any problem, the temporary solution which is working for me  at the moment, is to create a .docx template and use replaceTemplateVariableByHTML.



Regards.