InMotion Hosting Support Center

In this article I'm going to show you how to add a PDF (Portable Document Format) file to your website.

Linking to a PDF file

Most novice website users are aware that you can link off to another website or webpage from your own website. However they can become confused when they try to figure out linking to a PDF document that they might need to share.

It's actually a very simple process to link to a PDF file, if you've linked to another webpage before than you should have no issues at all figuring it out, as it's essentially the same process.

If you are simply trying to directly type out a HTML link to a PDF document, you would use the following format, in this example our sales.pdf document is in the same directory as the HTML page we are linking to it from:

<a href="/support/sales.pdf">Sales figures</a>

This would create a link saying Sales figures, and when visitors click on the link, it should either open up their PDF reader automatically, or prompt the visitor to download the PDF file.

Alternative PDF linking methods

In some cases, you might not be directly modifying HTML code, and in these cases you would typically need to link to a PDF file differently. For instance if you're using the Premium Website builder you would want to read about uploading and linking files in the Premium Website Builder.

In some cases you might also want to be able to display information from a PDF document without your visitor having to have a PDF reader installed, you could use something like Google Docs in order to accomplish this. We have a guide on how to embed a PDF in a Joomla 2.5 article that explains this process in-depth.

Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

n/a Points
2018-08-18 1:25 am

Thanks for sharing information in this post. I went through and found that it really important to the user. I also have faced issues to add PDF file in our Website. This post really helped me a lot.

n/a Points
2018-05-14 7:08 am

I'm creating an index site - i.e. a page of links to many confidential documents (PDFs, docx) and recorded meetings (.mp4) - that is behind a login.  I want to store the links outside the webserver so they can not be accessed directly.  However, if the filepath is outside the webserver, it doesn't display in the browser if I use <a href="/support/{local path to file}">filename</a>.  How can I get this to work?

1,173 Points
2018-05-14 11:54 am
The most common cause of this would be whatever webserver for handler not having permissions to access the files where they are currently stored, you will want to make sure whatever user your services are running as have at least read access to the directory and files.
n/a Points
2017-08-30 8:16 am
Is it possible to add a video or any recorded audio to our website?
11,043 Points
2017-08-30 11:15 am
Yes, you can add files to your server using your favorite file management program. However, it is wise to leverage a third party video hosting product like YouTube or an audio hosting tool like Soundcloud. This will save resources on your server.
n/a Points
2016-12-22 10:18 pm

I have godaddy and need to add a link for vendors to download applications for my wedding show.  Godaddy does not have a quick access but I can create a html.  How do I create a link for them to be able to download applications or get access to attachments?

2,858 Points
2016-12-23 9:56 am
Kendel, you would want to upload your file, and then <a href="">make an 'anchor' tag</a> to the location that you placed the file.
n/a Points
2016-05-20 7:54 am

Is there a way that I can tell when a file was added to a website? Is there some sort of timestamp that can track this?

10,077 Points
2016-05-20 8:59 am
Hello Martin,

I do not believe this is something you can do via the File Manager but in the command line you have the last modified column when looking at files. This shows the last time the file was updated. If you are using a script to add files then you could modify it to timestamp in a database or create a log file.

Best Regards,
TJ Edens
n/a Points
2016-05-06 12:18 pm

we can put any any file like:.apk, .exe, .pdf, .mp4, .mp3 ???

10,077 Points
2016-05-06 12:45 pm
Hello Taher,

You can but most anti virus programs will try to block it by default. However if you put them in Zip files then it wont both the anti-virus until extracting when it performs its scan. What are you trying to provide as a service to users?

Best Regards,
TJ Edens
n/a Points
2016-03-11 5:35 pm

Thanks for this article.  I'm still having a few issues though.  I am using CustomerHub to manage subscriber content.  I want to be able to have users open a pdf but CH can't do that...only download files.  As a work around, I want to create a link that opens a new window and point it to the pdf in my File Manager with my web hosting vendor.  I did this with a quiz I created and it worked fine.  Unfortunately, I'm getting page not found.  I point it to http://mywebsitename/foldername/filename.pdf.  This should work, right?

10,077 Points
2016-03-11 6:15 pm
Hello Dbarttx,

As long as your user owns the files permissions wise then yes it should. You may need to contact CustomerHub if you are using their website services.

Best Regards,
TJ Edens
n/a Points
2015-10-23 11:21 am

Dear sir 

Please,  i would like to know  how to upload PDF file to my website html page,because of in my text editor page   it has not pdf  button for uplaod pdf file

best, reguards

10,077 Points
2015-10-26 11:29 am
Hello Sisavath,

You can upload the PDF file via the File Manager within cPanel.

Best Regards,
TJ Edens
n/a Points
2015-10-16 12:02 pm

I maintain a website for a charity. They send me a pdf newsletter which I upload and link to the appropriate page. 

However they often contain links to an email address or other webpage or site which work if view as a pdf but not when displayed within a webpage. Is there a way to do it or will I need to rewrite the pdf as an html page? (messy!!)



42,946 Points
2015-10-20 2:43 pm
Hello Colin,

Typically, you can make links within a PDF "hot" so that people can click on them and they go to where you have designated. This is normally done within the program (such as Adobe Acrobat) that made the PDF file. Otherwise, you would have to make the link to the PDF, and then a separate link outside the document, that people could click on to - or, as you were indicating, re-write everything as an HTML file.

I hope this helps to answer your question, please let us know if you require any further assistance.

Arnel C.
n/a Points
2015-10-21 10:12 am

I guessed that would be the case. Just thought it worth asking in case I'd missed a trick.



n/a Points
2015-09-29 12:38 am

i want to a slider code in html  and a menu fix code  and a responsivness website code.

10,077 Points
2015-09-29 11:23 pm
Hello Ravindra,

You may need to contact a developer to complete your project you are trying to accomplish. However can you please explain some more what you are trying to and provide a URL so we can try to point you in the right direction.

Best Regards,
TJ Edens
n/a Points
2015-08-31 3:57 am

hello Jacob... dont know whether this thread is still open for queries or not but...u had explained earlier the process of uploading a pdf file from a local pc to wordpress can we do the same in joomla ? That is I need to upload a pdf file which resides on my computer to joomla which i have hosted on my local pc.. Can u please tell me how do i go about it? Regards RK

31,595 Points
2015-08-31 1:16 pm
Hello RK,

Thank you for contacting us. I recommend reading our tutorial on How to embed a PDF in a Joomla 2.5 Article.

Thank you,
n/a Points
2015-03-25 10:45 pm
Great ! I will upload my .pdf via cPanel to a new directory and use
<a href="/support/sales.pdf">Sales figures</a> method. Will .pdf/A-1a file work as well as .pdf ?
10,077 Points
2015-03-31 9:21 am
Hello Dave,

It should work just the same.

Best Regards,
TJ Edens
n/a Points
2015-01-16 9:52 pm

Not sure if this thread is still being used, but wanted to ask a few questions about the said topic.My website for my business I just made has word press with it and the pdf instructions seem pretty straight forward.Does word press allow you to edit other things as well on an already published site?For Example.. adding a picture to the about me section?Thank you very much!!!

43,761 Points
2015-01-19 10:21 am
Hello Clay,

This article is about adding a pdf file to a webpage so I have moved your question to its own thread. You can view it here. Please make new questions in the future when not having to deal directly with the article subject.

Kindest Regards,
Scott M
n/a Points
2014-07-19 6:45 pm
I still do not see how to add a pdf to my website. These instruction are for linking.
9,968 Points
2014-07-21 12:19 pm
Hello Lyle,

Linking to a PDF is the same as adding it your website. For instance when you'd like to place an image on your website you simply create a link to it with the <img> HTML tag.

There is no HTML tag for directly embedding a PDF file into your website, but most web-browsers these days can simply read a PDF file directly in them. So simply using a link on your website to where you have that PDF file stored on your server should allow the visitor of your website to view that document.

If you really wanted to display a PDF document embedded into your website, you could try to use something like the PDF.js library which uses JavaScript to display the document in place on your website. But that is going to be a much more complex setup than simply going the normal route of creating a link to the PDF.

Please let us know if you had any further questions at all!

- Jacob
n/a Points
2014-07-21 12:52 pm

What server? The PDF is is on my computer.

9,968 Points
2014-07-21 2:53 pm
Hello Lyle,

Just like if you would want to display an image on your website, you first need to upload the image or in this case the PDF file to the same server that your website is hosted on.

You can do this either with FTP using a client such as FileZilla, or if your webhost is using cPanel you can upload a file using File Manager.

If you're using a Content Management System like WordPress to manage your site, then you would follow these steps instead:

  1. Login to WordPress

  2. Click on Posts from the left-hand menu

  3. Hover over the page you want to link to your PDF from, then click on Edit

  4. Place the mouse cursor where you'd like to add the PDF link and then click on Add Media

  5. Next click on the Upload Files tab

  6. Now click on Select Files

  7. Browse to the location on your computer with your PDF file, select it and click Open

  8. With the PDF document selected and showing a check mark now, click on Insert into page

If you're using WordPress, you should see that it simply creates an <a href> link as originally explained in this guide that you're commenting on.

Please let us know if you have any further questions. If you had any specific issues with our instructions please be as specific as possible for exactly what you're trying to do and we'd be glad to try to point you in the right direction.

- Jacob
n/a Points
2015-03-30 11:10 pm

Jacob MH 

I have spent several unproductive hours on this problem and you have explained the process so clearly that even I, a novice, can understand and follow.

Thank you so much,


n/a Points
2014-04-09 8:17 am

I have a PDF which I link to on my website.  

When users click on a link the PDF opens on screen, how do I get it so that it either downloads or prompts the user to download instead?

11,186 Points
2014-04-09 8:49 am
The PDF opening on screen is due to the user's browser. Most modern browsers will now open PDF files on screen now instead of prompting to download the file. To download the file, the users would need to right-click the file and click Save.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

37 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!