Open sajidmanzoor10p opened 1 year ago
https://github.com/eKoopmans/html2pdf.js#cdn
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js" integrity="sha512-GsLlZN/3F2ErC5ifS5QtgpiJtWd43JWSuIgh7mbzZ8zBps+dvLusV+eNQATqgA/HdeKFVgA5v3S/cIrLF7QnIg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
@jonXmack What will be solution if someone don't want to use CDN due to any reason?
Download the zip and use the bundle from the dist
folder. If you don't want to download the zip you could just copy the contents of the bundle file from the repo and then create a js file within your project.
Hello
How to use How to use html2pdf.js without NPM or any other package manager. I am working on a legacy project and need to use html2pdf.js with jQuery or Javascript. Please confirm how can I do that.
I tried adding dependencies before html2pdf.js but it giving exception.
Please confirm how can I use it without NPM.
Thanks