My
Ideal
Host
We do more than just host websites
Customer login
HOME
WEB
HOSTING
RESELLER HOSTING
CUSTOMER SUPPORT
TUTORIALS
COMPANY
View source
for
How to add a .pdf file to site
<seo title="How to add a .pdf file to site" metakeywords="add pdf,downloadable pdf,pdf file,pdf on site" metadescription="How to add a .pdf file to site" /> <div align=justify>This article will let you know how to add a pdf file to your Web site, so that your site visitors can open or download it. First, log into your cPanel and go to '''File Manager''' under the '''[[Files]]''' section. To add a pdf file to your site: * '''Upload''' the desired '''pdf file''' to your site. Browse your computer for the pdf file you would like to add and upload it using File Manager. Alternatively you can use any FTP client to upload the files. * Make sure you have added the pdf file to '''public_html''' folder. * '''Choose the''' desired '''location''' for your pdf on site. Look for the page you want your pdf file to appear on * '''Add the link''' to the pdf file. Add the following code to the page where you want the link to the pdf file to appear in your HTML code: '''''<a href="Path">The Link</a>''''' Instead of '''''Path''''' you need to put the full path of the destination page (for example, ''http://yourdomain.com/about me.pdf'') Instead of '''''The link''''' you need to put the title of your link (for example, ''about me''). Let's take an example to have a better idea: * Your Web site is located at http://yourdomain.com. * You have uploaded the pdf file to '''''public_html''''' directory. * The pdf file is called '''''"example.pdf"'''''. * The text you want the site visitor to click on to download the pdf file is '''''"Click here for the pdf file called 'example'".''''' * The code you need to add for the downloadable pdf file will look like this: '''''<a href="http://yourdomain.com/example.pdf">Click here for the pdf file called 'example'.</a>''''' So, when the visitor goes to your site the downloadable pdf on site will be available under the text '''''Click here for the pdf file called 'example'.''''' If you had uploaded the pdf file to ''"somefolder"'' folder, then the code for the link to the downloadable pdf on site would be as follows:</div> '''''<a href ="http://yourdomain.com/somefolder/example.pdf">Click here for the pdf file called 'example'.</a>'''
Return to
How to add a .pdf file to site
.
Navigation
Hosting Issues
Cloud Hosting
Billing Issues
FAQ
Articles
News
Interesting from the web
Search
Subscribe to our newsletters