Ya uso jsPDF para descargar la nota para el estudiante, pero no puedo solucionar este problema. Si los datos no tienen una imagen, jspdf funciona correctamente, pero cuando agrego una imagen con algún texto, el pdf se descarga vacío. ¿Cómo puedo arreglarlo?
este es el código js
function NoteToPdf(Id) { debugger $.ajax({ type: "POST", url: '/Notes/GetNotesById/' + Id, success: function (data) { debugger var Content = data['data'][0]['Content']; var Title = data['data'][0]['Title']; var pdf = new jsPDF(); debugger var leftMargin = 15, topMargin = 15, width = 170; var HTML = $(Content).html(); pdf.fromHTML(HTML, leftMargin, topMargin, { 'width': width }); pdf.save(Title); }, error: function (request, status, error) { swal.fire("error"); } }); }