HTML page to PDF conversion - Codeigniter library

Step #1 Download the library from the URL
https://github.com/iamfiscus/Codeigniter-DOMPDF/archive/master.zip

Step #2 Unzip the master

Step #3 There will be three folders

a) controllers
b) libraries
c) third_party

copy all these folders to <your application path>/application/ folder

Step #4 Create a view file and name it "welcome_message" and type some HTML content there

Step #5 There will be the sample controller. Access the controller by
http://localhost/<your project name>/demopdf_test


Step #6 Now the pdf file will be downloaded



Source:https://imron02.wordpress.com/2013/11/20/create-pdf-in-codeigniter-part-ii/?blogsub=confirming#blog_subscription-3

Popular posts from this blog

[Solved] Hive installation error: java.net.URISyntaxException: Relative path in absolute URI

Install Android SDK in centOs

Installing arules package (Association Rules) in R