Attempting to create a PDF with jsPDF and display it in the browser – showing empty PDF
I am using the jsPDF package to create a PDF in my React app. I want to then display that PDF in the browser in a react modal. I got the PDF viewer to come up in the modal, but the actual PDF is empty. I cannot figure out why. I’ve copied the examples I have found.
When saving a react div containing texts using jsPdf.html the custom fotns are converted to helvetica
I am trying to save a html content targeted using an id with jsPdf.html. When saving the html all the custom fonts are converted to helvetica. Is there any solution for this. I have tried multiple solutions like addFileToVFS but none works