I would like to import html templates that, with some variable replacements, can be written directly to the pdf document.
These templates involve html tables, but I cannot get the horizontal spacing right. I tried fixed width, percentages, in css and in the table, but the results are not what I need.
Are there rules, as to how TCPDF interpretes html? Is there a documentation file I missed?
Thanks for your help.
Gerry
Last edit: Gerry Danen 2015-01-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to import html templates that, with some variable replacements, can be written directly to the pdf document.
These templates involve html tables, but I cannot get the horizontal spacing right. I tried fixed width, percentages, in css and in the table, but the results are not what I need.
Are there rules, as to how TCPDF interpretes html? Is there a documentation file I missed?
Thanks for your help.
Gerry
Last edit: Gerry Danen 2015-01-11
I do this but I do all my measurements in mm. eg.
Do you use <style></style> or hardcode in the html, Simon?
I hardcode.
Thanks, Simon.
I have tinkered with some code and this works for me: