I am sorry but I don’t think there is any way to reduce the ram footprint. Converting HTML to a PDF is a really complex process. I think a lot of images in your post could bring up the RAM consumption.
Ok. Now I have played around with this on my testweb reducing the php memory to 64 MB – and I have no problems at all.
On the hosted site it crashes in line 13312: $this->OpenTag($tag,$attr);
trying to allocate some 300K Ram. And: the content I want to print is simple text, no images at all.
So there might be something else going on which I don’t understand. Ideas?
Hmmm No relevant changes but now it started working…. Maybe the moon, the night, the whatever…
well… it worked once on the one document, and not since, it worked on another several times. No the one is not really complex (I think ;), just a table with 150 rows and 6 columns
So any ideas on why this could happen are appreciated…
Thanks. If there are any bugs within the mpdf library itself feel free to open a bug report at http://www.mpdf1.com/mpdf/index.php and notify me to update the plugin and use the newest library version.