Invoicing in PDF

QuestionsInvoicing in PDF
Georges asked 2 months ago

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

 

3 Answers
Abu Ghufran Staff answered 2 months ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Georges answered 2 months ago

Hi

I saw this demo. But demo don’t explain how to use an html <table>

And i didn’t find documentation about tcpdf

Abu Ghufran Staff answered 2 months ago

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
 

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

0 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?