Subject: | Expunge data as part of $pdf->close; |
Date: | Fri, 13 May 2011 02:04:56 +0000 (UTC) |
To: | bug-PDF-Create [...] rt.cpan.org |
From: | vollrath111 [...] comcast.net |
To whom it may concern:
It would be greatly helpful if $pdf->close would use perl's delete to expunge all the data structures supporting the "current" PDF (the $pdf referent and all its parts ) , thus free-ing up sufficient memory to handle the "next" pdf.
In my application I need to create a series of PDF files (printable invoices, one pdf per invoice) from a large file that contains data for many invoices. On my laptop with 2GB, by the fifth invoice I get an error abort -- !Out of Memory.
A quick patch would be ideal (would a return email be too much to ask?).
Thanks,
Al Vollrath
312-282-8820
P.S.: Great package--easy to use and fairly fast.