I am working on a resume maker project in php, I am fetching all entries from database. so in this project I am using bootstrap for resume designs. I want to add a button to download resume as PDF in same layout as I designed using bootstrap. I have also inserted image of the user. so please help me with specific solution with demo. bootstrap layout is must.
Asked
Active
Viewed 1,812 times
0
-
you need to use pdf libraries for the same like , tcpdf and fpdf and many more. refer this link - http://www.web-development-blog.com/archives/create-pdf-documents-online-with-tcpdf/ – Manthan Dave Oct 22 '16 at 12:34
-
4Possible duplicate of [Convert HTML + CSS to PDF with PHP?](http://stackoverflow.com/questions/391005/convert-html-css-to-pdf-with-php) – S.I. Oct 22 '16 at 12:35
1 Answers
0
You really should use a library like Prince XML or MPDF for that.
As an example, mpdf is really easy to implement:
require_once __DIR__ . '/vendor/autoload.php';
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML('<h1>Hello world!</h1>');
$mpdf->Output();
Here is an online manual.

Gökhan Mete ERTÜRK
- 3,378
- 2
- 19
- 23