Creating Direct Links to PDF Files

To avoid multiple clicks when creating a link URL that is meant to open a PDF (Adobe Acrobat) file, use the following workaround.

  1. Between the <head> and </head> tags in your HTML file, include the following meta tag.
    <meta http-equiv="Refresh" content="0; URL=pathToFile/fileName.pdf">

    Note: the zero after the content=“ attribute tells the browser to display the PDF file immediately.

  2. Between the <body> and </body> tags, include a link to the PDF file for users with browsers that don't directly display PDF file for some reason.
    <a href="pathToFile/fileName.pdf">View PDF</a>
  3. In the link table, set the link URL to the address of your HTML file instead of to the PDF file.

Learn more