How to know if browser has PDF viewer or not?

前端 未结 4 2153
再見小時候
再見小時候 2021-02-13 04:38

I am viewing PDF into iframe. It works fine. But some of the client don\'t able to see it in IE. They get it as download option.

How can I identify if browser has pdf v

4条回答
  •  孤独总比滥情好
    2021-02-13 04:49

    As an alternative, you can use a library like viewer.js to display your pdf in a container.

    see http://viewerjs.org/

提交回复
热议问题