Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate pdf file from dynamic data coming from mysql database in php?

I am doing one web application society management system. In this application I want to generate pdf file for each user separately. Means during invoice generation , if there are 10 users then for each user separate invoice should get generated as a pdf after clicking on generate PDF button. My invoice got generated for each user but now I dont understand how to convert it into pdf dynamically. So please help me in this question ?

like image 871
Yogesh k Avatar asked Dec 28 '25 10:12

Yogesh k


1 Answers

Use any of the following php scripts to generate dynamic PDF documents

fpdf: http://www.fpdf.org/

tcpdf: http://www.tcpdf.org/

like image 175
user3364940 Avatar answered Dec 30 '25 22:12

user3364940



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!