How can I make a PDF file in PHP. What I want to make is a student list. So I want to query the database, get the information and give it to the user as a PDF when he clicks generate student list.
5 Answers
You have two good options first is the standard php library for manipulating pdf's: https://www.php.net/pdf
Or you can use http://www.fpdf.org/. I would recommend the second.
Other options include: www.pdflib.com
-
Another recommendation for fpdf. Had performed well for us, even under heavy loads. Commented Feb 13, 2009 at 19:09
There are are already many libraries available with PHP bindings. One that comes to mind is PDFLib (www.pdflib.com). If I am not mistaken there should even be a lite version that you can use for free. But just check it out.
Hope it helps