Recommended way to embed PDF in HTML?

前端 未结 24 2011
天命终不由人
天命终不由人 2020-11-21 04:54

What is the recommended way to embed PDF in HTML?

  • iFrame?
  • Object?
  • Embed?

What does Adobe say itself about it?

In my

24条回答
  •  情深已故
    2020-11-21 05:30

    I had to preview a PDF with React so after trying several libraries my optimal solution was to fetch the data and ebmed it.

    const pdfBase64 = //fetched from url or generated with jspdf or other library
    
      
    

提交回复
热议问题