当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Render PDF Streamed from API In HTML

问题描述:

I have an API's response which is contain a PDF Stream like:

response.data = "%PDF-1.7↵%����↵1 0 obj ↵<<↵/FormType 1..."

Then I am try to use :

<object data={response.data} type="application/pdf" width="800" height="400">

for render pdf stream to my browser but it does not work.

Question:

How can I render it into my HTML and show it to my browser?

分享给朋友:
您可能感兴趣的文章:
随机阅读: