Welcome to WebmasterWorld Guest from 18.232.53.231

Forum Moderators: open

Adobe PDF viewer

     
11:10 am on Jul 5, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1103
votes: 1


I have tried to replicate PDF viewer but did not find any resource to see functional Adobe PDf Viewer.

Need help how to work my enclosed HTML and Javascript code using a PDF file.


<!DOCTYPE html>
<html lang="en" >

<head>
<meta charset="UTF-8" />
<title>Adobe PDF Viewer</title>
<script type="text/javascript" src="http://adobe.com/scripts/pdf.library.js"></script>

<link rel="stylesheet" href="./style.css" />

<!-- https://www.adobe.com/devnet/pdf/library.html -->
</head>

<body>

<h1>Embedding a PDF using Adobe PDF library: Open PDF within browser</h1>

<div id="pdf">It appears you don't have Adobe Reader or PDF support in this web browser. <a href="http://www.example.com/mypdffile.pdf">Click here to download the PDF</a></div>

<script src="./script.js"></script>




</body>

</html>
12:39 pm on July 5, 2019 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member graeme_p is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 16, 2005
posts:2981
votes: 201


What are you trying to do? Embed a PDF, or render in the browser (regardless of browser support)?
6:44 pm on July 5, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1103
votes: 1


Embed a PDF. It is an issue as I do not like to force Adobe installation even many users already have. So, Embed a PDF is the right solution but it is very hard to find a demo version which works. This is maybe an old issue but I have many PDF's which just download when I click. I like to show them inside the browser. As I understand Adobe library will support this.
7:30 pm on July 5, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:10149
votes: 1012


Most modern browsers (FF for example) will render PDF without Adobe... might be searching for a problem that has already been solved?

I currently use FF as my PDF viewer. :)
9:13 pm on July 5, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15764
votes: 831


Do there exist browsers that can't display PDF files natively?

Do there exist operating systems that don't come with something that displays PDF files?
6:59 pm on July 6, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:10149
votes: 1012


@toplisek ... what browser version are you using to test your site? I know that many have avoided upgrading their browsers for various reasons and yours might not natively support PDF files.

IE 11, Edge, FF all support PDF without Adobe ... I don't use Safari or Opera, but it appears the later versions of those will also render PDF in the browser.

At some point it no longer makes sense supporting out of date browsers unles there is a compelling reason.
7:41 pm on July 17, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1103
votes: 1


It does not depend on a browser in modern times as it is well supported. Can you put render PDF in the modal window like bootstrap using Adobe Library? It is not the only issue what is supported as a guess it is well supported. I try to use <!-- [adobe.com...] -->
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members