I have pdf files which should be displayed within web pages(shouldn't be opened in separate window or tab )
            Asked
            
        
        
            Active
            
        
            Viewed 56 times
        
    -1
            
            
        - 
                    1this 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 Answers
2
            You can use PDF.JS library.
 
    
    
        Krishnakant
        
- 435
- 1
- 6
- 12
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
 
    
    
        Kevin
        
- 930
- 3
- 13
- 34
 
    