Need to open blob/PDF in IE window

后端 未结 1 735
[愿得一人]
[愿得一人] 2021-01-17 10:06

I have the code below in my typescript to call a web api method and retrieve a binary byte array (blob) that is a PDF. My user requirement is to open PDF in a new window.

相关标签:
1条回答
  • 2021-01-17 10:24

    The reason why it works in Chrome and other normal browsers: they have pdf previewer installed inside of them.

    The lease why it does not work in IE: since in architecture if IE there should be some PDF reading program installed on operating system; for instance, if you have Adobe Acrobat installed, you will open it without problems.

    I can recommend you to use: pdf.js/.

    0 讨论(0)
提交回复
热议问题