I want to set a custom filename in createObjectURL of the blob. Right now, its showing something like this:
const data = window.URL.createObjectURL(newBlob); const pdfWindow = window.open(); pdfWindow.location.href = data;
I don’t want to download the file (its solution is already present on StackOverflow), it should be open in a new tab.
Source: JavaSript – Stack Overflow