I have modified the Footer() method in my application and everything is
working nicely. Now I am trying to add dynamic content to the footer which
doesn't seem to be supported (footer is defined once and copied n times
apparently). The application that I wrote collects performance evaluations for
600 employees and then generates 600 pdfs of the responses. I want to
dynamically set the footer to display the employee name of the pdf currently
being generated (loop). I couldn't find a built-in way to achieve this or am I
missing something?
I was hopping that someone had already done this previously before I start
modifying methods and adding my own to support this feature. I think this
would also be a great thing to implement in future releases of TCPDF (if not
already possible) as I see a real need for this.
Thanks,
-Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
footer is defined once and copied n times apparently
No, the footer is called when a new page is started. You can set a general
state variable on your extended TCPDF class and recall it of your Footer()
method.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have modified the Footer() method in my application and everything is
working nicely. Now I am trying to add dynamic content to the footer which
doesn't seem to be supported (footer is defined once and copied n times
apparently). The application that I wrote collects performance evaluations for
600 employees and then generates 600 pdfs of the responses. I want to
dynamically set the footer to display the employee name of the pdf currently
being generated (loop). I couldn't find a built-in way to achieve this or am I
missing something?
I was hopping that someone had already done this previously before I start
modifying methods and adding my own to support this feature. I think this
would also be a great thing to implement in future releases of TCPDF (if not
already possible) as I see a real need for this.
Thanks,
-Chris
No, the footer is called when a new page is started. You can set a general
state variable on your extended TCPDF class and recall it of your Footer()
method.