From your description, I suppose you want to display the PDF file in the browser, then print it.
As far as I know, IE 11 blocks display of blob, if you want to display them, first we need to download it, then view it from locally.
So, I suggest you could try to refer to the following code, when using IE browser download the file first, then print them, when using another browser you could use your code to print them:
// if Internet Explorer or Edge is used, download it.
if (window.navigator && window.navigator.msSaveOrOpenBlob) {
var byteCharacters = atob(result.document);
var byteNumbers = new Array(byteCharacters.length);
for (var i = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i);
}
var byteArray = new Uint8Array(byteNumbers);
var blob = new Blob([byteArray], {
type: 'application/pdf'
});
window.navigator.msSaveOrOpenBlob(blob, "output.pdf");
// for all other web browsers
} else {
//your code to print them
}
Reference:
Displaying binary file (pdf) in IE 11
How to print Pdf file through window.Print() ?
How to open a pdf downloaded from an API with JavaScript