The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Accessing PDF files from HTML Code, How to access PDF files from HTML Code
John F.
post Oct 4 2009, 04:45 PM
Post #1





Group: Members
Posts: 8
Joined: 4-February 07
Member No.: 1,779



Though the following code validates ok as W3C compatible, I can't seem to get it to work in IE7 & IE8, as I keep getting the message 'Your browser does not support embedded PDF files'. The 'any_pdf_file.pdf' it calls, can be any PDF file. Someone in Canada can get this code to work on their IE8 machine, but I can't - see next paragraph.

I am based in the UK and I do understand that my IE8 (currently reverted to IE7 to try & solve this problem) is different to US versions in that in 'Tools/Internet Options/Security' there is a Checkbox called 'Enable Protected Mode' which is not on my UK version. (Incidentally, I believe this missing Checkbox is the reason why 'Nuances's PDF Convertor Prof. V6' keeps crashing my IE8 - Nuance is currently investigating this problem.)

I have tried various combinations of this code, in an effort to get it to work - my attempts can be seen at

'http://www.surreytt.co.uk/STTA_General/Statistics/' and in the various sub-folders.

================================================================================
==================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title>any_pdf_file</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
</head>

<body>

<div>
<object width="800" height="800"
data="any_pdf_file.pdf#toolbar=1&navpanes=0&
scrollbar=1&page =1&view=FitH"
type="application/pdf" title="Title of this pdf file">
<p>Your browser does not support embedded PDF files.</p>
</object>
</div>

</body>
</html>
================================================================================
============

John F.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 4 2009, 08:01 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



Don't know for sure, but I think this is controlled by user settings. I found this test page.
http://joliclic.free.fr/html/object-tag/en...cation.html#pdf
According to the author's notes it should work in most browsers. I doesn't work in any browser I tried, but I don't allow my PDF reader to "open inside the browser" (or whatever they call it).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 12:53 PM