-1

I have pdf files which should be displayed within web pages(shouldn't be opened in separate window or tab )

joshi098
  • 31
  • 3
  • 1
    this post could help you: [recommended-way-to-embed-pdf-in-html](http://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html) – haggix May 12 '16 at 10:09
  • Possible duplicate of [Recommended way to embed PDF in HTML?](http://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html) – Bardi Harborow Feb 15 '17 at 05:53

3 Answers3

2

You can use PDF.JS library.

see demo: http://mozilla.github.com/pdf.js/web/viewer.html

GitHub: https://github.com/mozilla/pdf.js

Krishnakant
  • 435
  • 1
  • 6
  • 12
1

You could use the PDF.js from mozilla.

PDF.js

Tony Joseph
  • 1,802
  • 2
  • 14
  • 17
1

Probably 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.

Online demo: http://mozilla.github.com/pdf.js/web/viewer.html

GitHub: https://github.com/mozilla/pdf.js

Kevin
  • 930
  • 3
  • 13
  • 34