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.
- Between the
<head>
and</head>
tags in your HTML file, include the followingmeta
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. - 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>
- In the link table, set the link URL to the address of your HTML file instead of to the PDF file.