calculating html table length in php to pdf conversion
Posted: Tue Jul 20, 2010 8:07 am
Hi all,
I am working under a project.
it needs to convert html page to pdf file.
in that there is two tables and their fields are retrieved from the database.
so the height of the table is dynamic.
my doubt here is can i calculate that height of the table in php so that i can display the table header again if the table leads to the second page also?(though i know since php is server side scripting it is not aware of the browser's table length)
I can calculate the length using javascript or jquery but since i'm using html2pdf class file to convert the html page to pdf that class wont accept that script tags.
can any one help me?...
Any halp is appreciable.
Thanks in advance.
I am working under a project.
it needs to convert html page to pdf file.
in that there is two tables and their fields are retrieved from the database.
so the height of the table is dynamic.
my doubt here is can i calculate that height of the table in php so that i can display the table header again if the table leads to the second page also?(though i know since php is server side scripting it is not aware of the browser's table length)
I can calculate the length using javascript or jquery but since i'm using html2pdf class file to convert the html page to pdf that class wont accept that script tags.
can any one help me?...
Any halp is appreciable.
Thanks in advance.