prueba pdf
This commit is contained in:
@@ -367,7 +367,9 @@
|
||||
</div>"
|
||||
});
|
||||
|
||||
await JSA.InvokeVoidAsync("mostrarPdf", Convert.ToBase64String(pdfBytes));
|
||||
// await JSA.InvokeVoidAsync("mostrarPdf", Convert.ToBase64String(pdfBytes));
|
||||
await JSA.InvokeVoidAsync("descargarPdf", "prueba", Convert.ToBase64String(pdfBytes));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -25,3 +25,11 @@ window.descargarExcel = function (fileName, base64Data) {
|
||||
link.download = fileName;
|
||||
link.click();
|
||||
};
|
||||
|
||||
|
||||
window.descargarPdf = function (fileName, base64Data) {
|
||||
const link = document.createElement('a');
|
||||
link.href = 'data:application/pdf;base64,' + base64Data;
|
||||
link.download = fileName;
|
||||
link.click();
|
||||
};
|
||||
Reference in New Issue
Block a user