Hi Abu,
I need to create invoices in PDF and I don’t know the best way do do that: TCPCDF ? JsPDF ?
The main difficulty is to create a table inside invoice to display items invoiced with item number, item name, quantity, price,….
Could you please help me? as usual…
Regards
Hello,
Please refer to the demo demos/export/export-pdf-html.php
It allows pdf generation via html code and you can use php variables there.
Hi
I saw this demo. But demo don’t explain how to use an html <table>
And i didn’t find documentation about tcpdf
We’ll first connect the event handler, it will guide export to use this function.
$e["on_render_pdf"] = array("set_pdf_format", null);
$g->set_events($e);
Inside the set_pdf_format, we can return $html that will have out html output of pdf.
You can review https://www.gridphp.com/demo/demos/export/export-pdf-html.phps line 120

