Downloadiing PDF files

User 567182 Photo


Registered User
2 posts

I have uploaded a pdf file to my server and I want to make it available as a download. How can I create a link on an existing html file to enable visitors to download it£
User 2144239 Photo


Registered User
0 posts

Robert Kirk wrote:
I have uploaded a pdf file to my server and I want to make it available as a download. How can I create a link on an existing html file to enable visitors to download it£


Hello Robert,

The link would be the same as a regular link. When the user clicks it, they will be prompted to either Open or Save the file. The HTML code would be:

<a href="http://www.website.com/download.pdf">Download the PDF</a>


Replace the url and file name with the correct information. You can also change "Download the PDF".

Please let us know if you have any other questions.
User 38401 Photo


Senior Advisor
10,951 posts

I'll take a stab that if you place that file in a link on your site and it's directly linked to that PDF file it's going to most likely automatically attempt to open that file in a PDF format in the browser. If that is the case (I haven't tested this but would be happy to do so if you post a link), then there is usually the ability to save the file right from the browsers PDF setup as it usually has a Save button on the top of the window. Would be the same setup as if they opened it in the Reader themselves which has all the setups for saving and such also.
User 122279 Photo


Senior Advisor
14,456 posts
Online Now

If you read the discussion here: http://www.coffeecup.com/forums/website … ing-files/

look for a post made by someone called JB-Isle-of-Man
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 567182 Photo


Registered User
2 posts

Thanks for the suggestions guys.

I'll adapt Monica's code and visit Inger's link for good measure. PDF downloads are such a common feature on websites I guessed there must be a simple solution.
User 476017 Photo


Ambassador
375 posts

Robert Kirk wrote:
I have uploaded a pdf file to my server and I want to make it available as a download. How can I create a link on an existing html file to enable visitors to download it£


Hi Robert
The English rugby union send numerous documents in PDF format and ask clubs to load them on our websites for club teams/members to read.
The example page can be viewed at
http://www.orrufc.co.uk/Player_development.html
On the page you can see a working example of 4 pdf files in
"the mini rugby continuum section"
The player/coach/club member can view/print or save the file once downloaded..

The section of html code is

<p class="a10mb">For a full set of the continuum rules click on the following links.</p>
<p class="a10bb"><a href="very_young_players.pdf">Micro rugby under 6's</a><br>
<a href="CONTINUUM_Mini_tag.pdf">Mini Tag rugby under 7/8's</a><br>
<a href="CONTINUUM_Mini.pdf">Mini rugby under 9/10's</a><br>
<a href="CONTINUUM_Midi.pdf">Midi rugby under 11/12's</a></p>

Hope this helps


Dave Butler
Yorkshire
England

Old Rishworthians Rugby Union Football club http://www.orrufc.co.uk
Tuxedo Junction Yorkshire Function Band http://www.riley-tuxedojunction.co.uk
The Commons Guest House http://www.thecommons-guesthouse.co.uk
all created with Coffee Cup html editor

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.