Home > database >  PDF download button
PDF download button

Time:11-05

i am making a CV generator, and i need help. I am making a button, which will generate the CV as pdf and make it downloadable. Is there any way i can do it in HTML and CSS, not js and jquery?

<h3><a href="#" class="button dark ripple-effect button-sliding-icon" style="width: 154.609px;">Download PDF<i class="icon-feather-check"></i></a></h3>

This is how it looks like, it should download the CV down below..

CodePudding user response:

No, there is no HTML/CSS only way to actually generate a PDF.

However, you could use a print stylesheet (media print - see https://developer.mozilla.org/de/docs/Web/CSS/@media) and set your links href to javascript:window.print(); to make it open the print dialog.

The user could use the "print to pdf" function (if the users PC offered that) to generate a PDF from the print view, but thats the closest youll get to actually generate a PDF in pure HTML/CSS i believe.

  • Related