I am using jspdf in my reactjs project to convert the website in to the pdf and using the html function to convert the element in to pdf, but I am facing issue with svg as it is not get printed on the pdf. Pls provide me a solution.
const content = container.current;
const doc = new jsPDF("p", "pt", "a4", true);
doc.html(content, {
callback: function (doc) {
doc.save("project.pdf");
},
});
this is my code which convert the html content to pdf.