I was working in generating the PDF files of the reports for the portal site that I’ve been developing for UNeMed. I looked for few options available out there like FPDF, domPdf. But finally I came across a library that is simple to use and easy to plug in with CodeIgniter. The library is R&OS pdf class.
It provides us with two major files cezpdf.php and class.pdf.php which resides in application/libraries folder.
It also requires some font files in order to function and they have been placed in a root folder called named fonts.
*This link might be helpful for the reference
http://www.christophermonnat.com/2008/08/generating-pdf-files-using-codeigniter/