Website data pdf is important to make your document.Mpdf You can make your data pdf file with the help of mpdf. Text and image with css style can be shown with the help of mpdf. There are others php class to make pdf. But mPDF is easy to use. mPDF generates PDF file from UTF-8 encoded HTML. mPDF easy to intricate with php framework Laravel, wordpress, codeigniter, raw php etc. You can easy download mpdf on google.
<?php include('mpdf.php'); // mpdf file pathe in the project $mpdf=new mPDF(); $html="<table> <tr> <td>Name: </td> <td> John Doe</td> </tr> <tr> <td>Email:</td> <td>firstname.lastname@example.org</td> </tr> <tr> <td>About:</td> <td> <p style='color:blue;'> <strong>Codetones</strong> is an educational website. Here you will find different type of solution related to Web Development. Codetones provides you beginner to advanced level Tutorials.Latest Programming Tech news with informative data help you to solve web development base problem while programming. Step by step we will provide you the solution of the common and advanced code errors when coding. We face a lot of challenge when coding and it's hard enough to get the solution. Here we come to show you the easiest way to solve. </p> </td> </tr> </table>"; $mpdf->WriteHTML($html); $mpdf->Output(); exit; ?>
If you have any query comment below. We will post advance article about making pdf.