Click here to Skip to main content
14,392,909 members
Rate this:
Please Sign up or sign in to vote.
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:
<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 22:59pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   

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

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100