Today i will discus about `How to generate PDF in Codeigniter using mPDF`
Step 2. After Downloading extract it. Here is the codeigniter framework with mPDF integrated. You can copy mPDF to your existing project.
- Copy Pdf.php library from library to your existing project library directory.
- Copy mpdf directory from third_party directory to your existing project third_party directory.
Step 3. Now open or create a controller class and then create function in it. And then do something as bellow code –
<?php function mypdf() { $this->load->library('pdf'); $pdf = $this->pdf->load(); $html = $this->load->view('welcome_message', null, true); $pdf->WriteHTML($html); // write the HTML into the PDF $output = 'itemreport' . date('Y_m_d_H_i_s') . '_.pdf'; $pdf->Output("$output", 'I'); } ?>
Above first i load the pdf library. Then create a instance of pdf library class. After then get the view page into a variable called html. And finally create the pdf for the view page.
It was good information shared by you
ReplyDeleteSAP Training institute in Noida
SAP Training institute in Delhi
Such a wonderful post. Thnaks for posting
ReplyDeleteSAP training institute in Noida
SAP training institute in Delhi
ReplyDeleteI need more information about software course. please keep posting.
SAP training institute in Noida
SAP training institute in Delhi
very useful and interesting post shared by you. keep posting
ReplyDeleteSAP training institute in Noida
SAP training institute in Delhi
Thanks for sharing valuable information
ReplyDeletesap scm training institute in delhi
sap scm training institute in Noida
ReplyDeleteThis post help me a lot to understand. Thanks for sharing
sap scm training institute in Delhi
sap scm training institute in Noida
Its helps me a lot to get the information
ReplyDeletesap logistics training institute in delhi
sap logistics training institute in Noida
ReplyDeleteKeep sharing such post. Good information shared by you
sap scm training institute in noida
sap scm training institute in delhi
Great Article. Thank you for sharing! Really an awesome post for every one.
ReplyDeleteIEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Projects for CSE It gives you tips and rules that is progressively critical to consider while choosing any final year project point.
Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.
ReplyDeleteWant to Fill Your Career GAP Call Now & Get Genuine Experience Certificate
Expereince Certificate Providers in Bangalore- Boost Your Career