The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › Generate PDF file from PHP Form
I Need a suggestion to develop a pdf from the data entered in a php form, the pdf should be generated automatically after the user has submitted the form
I work at Expected Behavior, and we’ve developed a product called DocRaptor that converts HTML to PDF using HTTP POST requests.
You can make a request against our server using PHP, and DocRaptor will generate your document.
Here’s a link to our coding examples for how to make this call using PHP:
DocRaptor PHP example
Fpdf is the best bet, but has some limits for design. Dompdf can convert html pages to pdfs, but is limited also
i have used fpdf and it works great according to requirement