• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using TCPDF in Loops

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

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.

Could you please post what you changed (bevore and after)?
Thanx a lot!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.