Answers for "pdf button html"

0

place a convert to pdf button in html

<a onclick="this.setAttribute('href', 'https://v2.convertapi.com/convert/web/to/pdf?secret=YOUR_SECRET_HERE&download=attachment&url=' + encodeURI(window.location))" href="#">
    Save page as PDF
</a>
Posted by: Guest on May-25-2021
-1

javascript download file on click

You can trigger a download with the HTML5 download attribute.

<a href="path_to_file" download="proposed_file_name">Download</a>
Posted by: Guest on October-07-2020

Browse Popular Code Answers by Language