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

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Multiple pdf document with R&OS;library (/showthread.php?tid=20519)



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.