...

View Full Version : HTML CD link to PDF



Fry_33
07-29-2007, 03:49 PM
Hi

I am making a CD for displaying information. I am using HTML to make it and have nearly finished what I want to do. I would like to be able for users to open some PDF files on the CD and view/ print them. It works in firefox but IE 6.0 prevents the link from working. I figure I could change the security settings and it would work but I don't want users to have to alter anything.

Is there a way around this??

Thanks for your time.

JordanW
07-29-2007, 03:58 PM
Surely:


<a href="file://[LINK TO PDF FILE].pdf">CLICK TO VIEW PDF</a>


Would work in both IE and FF... or is this not what you are trying to achieve?

Fry_33
07-30-2007, 10:31 AM
Thanks for the reply,

That's what I am currently trying..

<a href="filename.pdf">click here</a>

It works fine in firefox even when I open the PDF to a new Tab/Window.

IE 6.0 however gives a "Your current security settings do not allow this file to be downloaded".

I have the "<!-- saved from url=(0017)http" line at the start of each of my html files so it can be run from a cd.

Anyone have any ideas?? I only know basic html and am stumped.

Thanks

_Aerospace_Eng_
07-30-2007, 10:36 AM
Do you understand how this part works?

<!-- saved from url=(0017)http
Are you putting the same thing on each page including the 0017 part?

Fry_33
07-30-2007, 10:57 AM
Yeah I have the same line in every html file.

Everything works fine as far as navigation is concerned but I can't link to a pdf so the user can view, print, or download it. in IE, firefox is fine.

I don't want to have the user change their security settings as it would be a hassle for them and they'd probably rather not do it.

_Aerospace_Eng_
07-30-2007, 11:04 AM
I understand that but just having that same line in every file isn't going to work. The 0017 part is the length of path of the file. If it doesn't match for the filenames you are going to get the warning. Try using this one instead.

<!-- saved from url=(0014)about:internet -->

Fry_33
07-30-2007, 11:17 AM
I understand that but just having that same line in every file isn't going to work. The 0017 part is the length of path of the file. If it doesn't match for the filenames you are going to get the warning. Try using this one instead.

<!-- saved from url=(0014)about:internet -->

Sorry, I just had a quick read of the mark of the web again. Since it's on a CD the domain will be unknown and I need to put it in the internet zone like above.

Unfortunately it still has the same error?

_Aerospace_Eng_
07-30-2007, 11:23 AM
I wonder if the version of Acrobat reader matters. According to this site it does
http://www.betweenthelakes.com/admin/pdf-whitebox.htm

What version do you have? Can you put the files in a zip file? I would like to burn them to a cd and see if I can get it working. Maybe one other solution would be to provide a link to IE using conditional comments. This link would contain the url to a .hta file that has the pdf document already embedded inside of it. I don't know how IE6 will react to this. You could use downlevel-revealed conditional comments (http://www.456bereastreet.com/archive/200511/valid_downlevelrevealed_conditional_comments/) to hide the link to the pdf from IE.

Fry_33
07-30-2007, 01:27 PM
I had acrobat 7 but just updated to acrobat 8.1
The PDF works fine normally.

I have been testing the Website on the hard drive and a USB Pen Disk so I don't have to waste CD's, I can't think that there'd be a difference. I could be very wrong though, is this a problem?

Oh, and I know the coding is crap so no need to bag me out too bad.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum