+ 1

How to make an html page downloadable as pdf file

I created an html page called resume.php and i added in it a link that says click here to download What code should I use to make this page (resume.php ) downloadable

27th Nov 2022, 11:22 AM
nisrine alami
nisrine alami - avatar
4 Answers
+ 4
Then try to use a php library to generate the pdf on the fly. There are many options such as fpdf, tcpdf, html2pdf, dompdf, wkhtmltopdf... Pick one that suits your need. https://stackoverflow.com/questions/9938869/create-pdf-file-using-php
27th Nov 2022, 4:13 PM
Tibor Santa
Tibor Santa - avatar
+ 3
You can make a static PDF version of your page (for example taking advantage of 'print to pdf' feature of your browser and operating system), and upload it as an asset with the rest of your website. And just use a normal anchor tag in the html. <a href="resume.pdf" download>Download my résumé</a>
27th Nov 2022, 1:20 PM
Tibor Santa
Tibor Santa - avatar
+ 1
Thanks you Soo much
29th Nov 2022, 2:42 PM
nisrine alami
nisrine alami - avatar
0
thank you . But the resume.php can be modified by the user because I have a form.html that generate the resume.php
27th Nov 2022, 3:02 PM
nisrine alami
nisrine alami - avatar