CodeIgniter Forums
Multiple pdf document with R&OS;library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Multiple pdf document with R&OS;library (/thread-20519.html)



Multiple pdf document with R&OS;library - El Forum - 07-13-2009

[eluser]Ornis[/eluser]
I am using R&OS;-pdf library to produce tables. I loop through an array and each loop triggers a db request, makes a table and saves it to pdf. However, the contents are accumulate so that non-first pdfs contain all tables from the previous loops. Does anybody know, how to flush/destroy the pdf-content at the end of each loop? I tried $this->closeParsers(), which interrupts the whole script. Thanks.