its  really useful to convert html to pdf thanks to http://imron02.wordpress.com/2013/11/20/create-pdf-in-codeigniter-part-ii/.j