CodeIgniter Forums

Full Version: Multiple pdf document with R&OS;library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.