Using TCPDF in Loops |
[eluser]res02083[/eluser]
Hello everybody! I managed to create PDFs with TCPDF. By the way: thank you to "summer student" for his posting (http://ellislab.com/forums/viewthread/56676/). It helped a lot. Now I tried to use TCPDF in a loop. I get as much PDFs as the loop is going, but all PDFs are the same => They have the data of the first data record. And, no, it is no programming error, as I produced the html-output in the same loop, and the html-output was correct. => is there any function like reset etc. that convinces TCPDF to produce different PDFs within a loop? I could not find anyone. Thanx, Stephan
[eluser]xwero[/eluser]
I recently did a mod of the fpdf class for the same problem so i guess the change for the tcpdf class will be the same. What i did was adding an initialize method and moved the settings from the constructor there.
[eluser]res02083[/eluser]
Could you please post what you changed (bevore and after)? Thanx a lot! |
Welcome Guest, Not a member yet? Register Sign In |