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

40,809

Solution 1

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

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

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

Solution 2

You probably have to check out this lib: mPDF

It's quite easy to use and allows you to generate PDF from HTML templates.

Share:
40,809
Yogesh k
Author by

Yogesh k

I have huge interest in web developement.

Updated on January 23, 2020

Comments

  • Yogesh k
    Yogesh k over 4 years

    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 ?