A HTML5 client-side solution for generating PDFs. Perfect for event tickets, reports, certificates, you name it!
Simply include the jsPDF library in your <head>, generate your PDF using the many built-in functions, then hook up a button to trigger the download. All the examples here use jQuery.
Generate PDF’s in CodeIgniter using this easy to use library based on domPDF.
- Drop the pdf.php library into your libraries directory.
- Download domPDF from http://code.google.com/p/dompdf/downloads/list
- Drop the dompdf directory into your libraries directory alongside the pdf.php file.
You can convert a view into a PDF by using the following code.
You can also pass in data to the function just as you would using
$this->load->view('welcome', $data); by using
For more information on how to use domPDF then please visit: http://code.google.com/p/dompdf/wiki/Usage
- CodeIgniter PDF Library – MIT License
- domPDF – GNU Lesser GPL
download from here