Replies: 1 comment
-
The solution is to put pdfBytes as an Array into Blob:
Thanks to one23four56 from StackOverflow for this solution |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was able to create a pdf withint the browser and send it to a new window using github.com/rndme/download however this tool stores the file first to the local drive. I tried the following what opens a new window with a pdf viewer however it is empty:
const pdfBytes = await pdfDoc.save();
//download(pdfBytes, fn, "application/pdf");
let blb = new Blob(pdfBytes, {type: 'application/pdf'});
let link = window.URL.createObjectURL(blb);
window.open(link);
Beta Was this translation helpful? Give feedback.
All reactions