skip to Main Content

Print PDF from BLOB – Jquery ajax

Im getting a PDF file from and external API, using this code I can download the file correctly: var req = new XMLHttpRequest(); req.open("POST", url, true); req.responseType = "blob"; req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); req.send(data); req.onload = function (event) { var blob =…

VIEW QUESTION
Back To Top
Search