Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HTML CD link to PDF

    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.

  • #2
    Regular Coder
    Join Date
    Jul 2007
    Location
    United Kingdom
    Posts
    159
    Thanks
    2
    Thanked 15 Times in 15 Posts
    Surely:
    Code:
    <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?

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Do you understand how this part works?
    Code:
    <!-- saved from url=(0017)http
    Are you putting the same thing on each page including the 0017 part?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    Code:
    <!-- saved from url=(0014)about:internet -->
    Last edited by _Aerospace_Eng_; 07-30-2007 at 11:09 AM.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    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.
    Code:
    <!-- 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?

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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 to hide the link to the pdf from IE.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #9
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Attached Files Attached Files
    Last edited by Fry_33; 07-30-2007 at 01:47 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •