+ 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
4 Réponses
+ 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
+ 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>
+ 1
Thanks you Soo much
0
thank you . But the resume.php can be modified by the user because I have a form.html that generate the resume.php