It works perfectly, but when I try with a PDF in base 64 it doesn’t work, Im getting the base 64 from the response of my server ==> data.json().RESPUESTA.
My project is gonna be a PWA so it will be deployed in a hosting, so I don’t need to draw in an native app I need to download it, will pdf.js solve that ? I mean it can download it in user’s computer?
I got some progress, i was using Safari browser to test my app and I found out that the browsers can block some URLs, then I tried out in Chrome browser and It worked I download the pdf, not perfectly but for now it did it.
let pdfWindow = window.open();
then
var pdf = pdfWindow.document.write("<iframe width='100%' height='100%' src='data:application/pdf;base64, " + pdfbase64Data + "'></iframe>");
But the pdf doesn’t open up in the centers on the mobile browsers