We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature requests, bug reports etc. are very welcome as issues. But questions are directed to stackoverflow with the tag jspdf.
jspdf
If you are facing issues with utf-8 characters, please refer to #2677.
Note that bug reports should follow these guidelines:
When i use the below code it will occur the error else its working fine. URL i am using
<script src="https://html2canvas.hertzen.com/dist/html2canvas.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.2.0/jspdf.umd.min.js"></script> <script> var jsPDF = window.jspdf.jsPDF; var html2canvas = window.html2canvas; const doc = new jsPDF(); // current date //var myDate = new Date(); // render html of product description var renderHtml = $('.product-single__description').html(); console.log('html => '+renderHtml); doc.html(renderHtml , { callback: function () { window.open(doc.output('bloburl')); // to debug }, x: 105, y: 120, }); </script>
The text was updated successfully, but these errors were encountered:
As the error message says, you need to load dompurify. When you're using script tags, include a script tag for Dompurify.
Sorry, something went wrong.
But i loaded the library from cdn link so its should work
Dompurify is an external/optional dependency like html2canvas and is not included in the jspdf bundle.
yes it work for me but not the another issues is .html() print large size of text :(
No branches or pull requests
Feature requests, bug reports etc. are very welcome as issues. But questions are directed to stackoverflow with the tag
jspdf
.If you are facing issues with utf-8 characters, please refer to #2677.
Note that bug reports should follow these guidelines:
When i use the below code it will occur the error else its working fine.
URL i am using
The text was updated successfully, but these errors were encountered: