Web Design & Development Forum

Web Developers Zone
  • FB
  • TW
  • LND
  • G+

Zend PDF Memory Management


I’m trying to create a large PDF file using Zend\PDF. But since Zend keeps the data in an object, at some point it shows “memory exhausted” error message.
Does anybody knows how to manage memory while creating large PDF files???

1 answer

Staff June 24, 2014

You can try to increase the size limit of the memory temporarily:
$memory_berfore = ini_get(‘memory_limit’); // in your php.ini
// New Limit
ini_set(‘memory_limit’,’256M’); //128M, 256M, 512M, 1024M,… (X*2M)

your code (creating large PDF)

// Older Limit


Please login or Register to Submit Answer