Hello all first time post.
I have a problem I cant seem to get my head around.I have created a web site for our local yacht club , on the links page I have added links to PDF files ,I am using dreamweaver 8 .
The Pdf links work fine in firefox but not in IE ,I have changed file names ,put files in root directory ,remade the pdf document as a html even the link still will not work , However if a create a flash button to the pdf link it works fine in both browsers.I even created the page in fireworks and added a link in fireworks ,and it still wont work .
I created the PDF files from a word document using acrobat 7.
Thank you all for your time and consideration.
Peter

Dani AI

Generated

Following 's security hint and the tests already run by , here are focused, practical checks to isolate why IE refuses to open a PDF while other approaches (Flash, other browsers) seem to work.

First, create a minimal test page and PDF in the same folder so nothing else can interfere. Use this anchor exactly as shown:

<a href="sample.pdf" target="_blank">Open PDF</a>

If that fails in IE, work down this checklist:

  • Serve the files over HTTP instead of opening the HTML from disk. IE applies stricter rules to file:// pages; run a quick local server (for example, python -m http.server 8000) and load http://localhost:8000/sample.html.
  • Verify the href is clean: no stray trailing dots, invisible characters, backslashes, or unencoded spaces. Editors sometimes inject characters that break IE but are ignored by Firefox.
  • Check IE add-ons: ensure the Acrobat/Reader plugin is enabled (Tools > Manage Add-ons). As a diagnostic, toggle Reader's "open in browser" setting to force download and see if that changes behavior.
  • When files are served, confirm the server sends the correct MIME type: Content-Type: application/pdf. On Apache add AddType application/pdf .pdf if needed. Incorrect headers can make IE try to display differently.
  • Recreate the PDF with a different method (PDF print driver or newer Acrobat) to rule out an unusual PDF feature or security flag.

Notes and order to try: start with the plain HTML test, then HTTP serve, then plugin and MIME checks. The fact a Flash control opens the file suggests the browser is capable of launching the PDF but the link/path or server headers are being handled differently by IE. These steps will usually reveal whether the issue is local security, link formatting, plugin settings, or server configuration.

Recommended Answers

All 2 Replies

Check the IE security settings.

Thank you for your reply
All security settings are ok ,this happens on all computers .I have tried the file on 4 different ones with different versions of IE.The View pdf in browser is enabled on all machines, as well as in acrobat.I also tried this link and tested the acrobat file it loads ok in IE am trying this offline before I upload to server.
Reg Peter

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.