Forum Moderators: open

Message Too Old, No Replies

Adobe PDF viewer

         

toplisek

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

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



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>

graeme_p

12:39 pm on Jul 5, 2019 (gmt 0)

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



What are you trying to do? Embed a PDF, or render in the browser (regardless of browser support)?

toplisek

6:44 pm on Jul 5, 2019 (gmt 0)

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



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.

tangor

7:30 pm on Jul 5, 2019 (gmt 0)

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



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. :)

lucy24

9:13 pm on Jul 5, 2019 (gmt 0)

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



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?

tangor

6:59 pm on Jul 6, 2019 (gmt 0)

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



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

toplisek

7:41 pm on Jul 17, 2019 (gmt 0)

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



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