Click here to Skip to main content
15,880,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to display a PDF on browser but it is not shown if Adobe was disabled in ADD ons in IE (or when user has not installed Adobe on his PC). I don't want to force users to download PDF to view the PDF of my website. I need to write a solution compatible with the 3 browsers: IE, Firefox and chrome. Below is my simple code:
HTML
<embed src="..\UserGuide.pdf" width="740" height="500">

Any idea ?

What I have tried:

I was searching online and I found something about pdf.js and I am very interesed in it. but I don't know how to use it in my code instead of embed tags, any helps?
Posted
Updated 13-May-19 21:59pm

1 solution

If the user doesn't have a PDF viewer on their machine they can't view PDF files. Much the same way if you don't have a Word viewer you can't view Word files, if you don't have a text file viewer you can't vie text files, if you don't have an Access database viewer you can't view Access databases. There is nothing special about PDF files, it is a proprietary format that needs a specific viewer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900