You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTML files in the examples folder, e.g. html2pdf/auto_break.html, point to a file that no longer exists: <script src="../../dist/jspdf.debug.js"></script>
This is showing up as ReferenceError: jsPDF is not defined in browser console instead of rendering the iframe with PDF.
Workaround
clone repo
copy file dist/jspdf.umd.js to dist/jspdf.debug.js
add a line near the end of the file (e.g. right after line exports.jsPDF = jsPDF;) with code: window.jsPDF = jsPDF;
the generated PDF is not perfect, especially in Firefox on Mac, but that's probably a known limitation when using html2canvas
(please let me know if this only happens due to my workaround method and it would look better when using the library in a proper way):
The text was updated successfully, but these errors were encountered:
HTML files in the examples folder, e.g. html2pdf/auto_break.html, point to a file that no longer exists:
<script src="../../dist/jspdf.debug.js"></script>
This is showing up as
ReferenceError: jsPDF is not defined
in browser console instead of rendering the iframe with PDF.Workaround
dist/jspdf.umd.js
todist/jspdf.debug.js
exports.jsPDF = jsPDF;
) with code:window.jsPDF = jsPDF;
(after starting the server with
npm start
)(please let me know if this only happens due to my workaround method and it would look better when using the library in a proper way):
The text was updated successfully, but these errors were encountered: