Reputation: 79
Hi I am trying to generate a transaction report of more than 500000 records, I tried mPDF, FPDF, TCPDF.
All of above creates error
<i>Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 6180881 bytes) in J:\shaonline\tcpdf\tcpdf.php on line 20476</i>
I tried to set memory size to 1024M and time out to 30M but still same error. on records less then 1000 it works fine.
Upvotes: 1
Views: 1029
Reputation: 83
I would not do this since all of these librarys AFAIK hold the complete PDF stream in memory until they write it out to disk. Export your data into, e.g. XML, and use another technique to convert it into PDF, such as XSL-FO.
Upvotes: 2