Hi. I've got a huge PDF file with tons of images and text, and I'm not sure how to prevent it from exhausting the memory limit, even when I give PHP a gig of RAM to play with.
I don't see how calling Zend_Pdf_Page::flush() can help. I'm still adding each page to the $pdf->pages array. I tried using the $updateOnly==true parameter of the Zend_Pdf::save() method, but that only corrupts the PDF file. I tried only setting $updateOnly to true when saving subsequent pages, and the output is a PDF file of correct size on disk, but Adobe Reader will say that it's corrupt. Then I tried using the Zend_Memory_Manager with the basic backend /tmp options and three gigs of space. That didn't change a thing. Does anyone know how to flush and/or save my Zend_Pdf pages so that my $pdf variable doesn't continue to grow past my memory limit? Thanks! Matt -- View this message in context: http://www.nabble.com/Zend_Pdf-and-memory-limits-tp20451553p20451553.html Sent from the Zend Framework mailing list archive at Nabble.com.
