What is the best way to embed PDF in HTML?

If coding is more your thing then the Website Development & Scripting forums are for you. Share server-side scripting and database integration tips, tricks and problems here.
Post Reply
agoston
Newbie
Posts: 3
Joined: Mon Sep 23, 2019 9:03 am

#1

Hello,

What is the recommended way to embed PDF in HTML?
  • iFrame
  • Object
  • Embed


User avatar
edwin
Junior Member
Posts: 31
Joined: Thu Sep 28, 2017 6:17 pm

#2

Hello,

The best approach is to use the PDF.JS library. It's a pure HTML5/JavaScript renderer for PDF documents without any third-party plugins.

Code: Select all

http://mozilla.github.com/pdf.js
https://github.com/mozilla/pdf.js
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests