B4Print.com

Web Development & Design => Technical => Topic started by: Lumpy on March 24, 2011, 04:34:52 PM

Title: Adding a pdf to our website
Post by: Lumpy on March 24, 2011, 04:34:52 PM
Hey Everyone,


I would like to add a pdf to our website. I want people to click on a link and have the pdf open in another window.
I can't get this to work. Does the pdf need to be in its own "pdfs" folder, or can it just go in the "images" folder like all the other images for the website?
Title: Re: Adding a pdf to our website
Post by: Sabrina The Turd Polisher on March 24, 2011, 04:41:14 PM
The site manager I use at work PDFs go in a 'documents' folder.
Title: Re: Adding a pdf to our website
Post by: Lumpy on March 24, 2011, 04:48:58 PM
I'm not using any Site Manager thingy, I have to modify the existing code, then upload to our ftp site. I've checked other sites source codes and I can't figure out how everybody does it. "Turd Polisher"? Thats good! :lmao:
Title: Re: Adding a pdf to our website
Post by: Joe on March 24, 2011, 04:54:53 PM
You can put it anywhere you like but it's up to the users browser whether it opens in the browser or saves as a file. The browser has to to have the Acrobat extension installed to view the PDF. That works for Safari and IE. For Firefox I think there is a plug-in you have to install. Not sure about Chrome. As the web site operator...it's really out of your hands.
Title: Re: Adding a pdf to our website
Post by: Joe on March 24, 2011, 04:57:16 PM
The option to have a link open in a new window though is:

<a href="http://www.quackit.com/html/html_help.cfm" target="_blank">HTML Help</a>
The "magic" is the target="_blank" which will make it open in a new window or tab.
Title: Re: Adding a pdf to our website
Post by: Sabrina The Turd Polisher on March 24, 2011, 05:04:50 PM
Quote from: Lumpy on March 24, 2011, 04:48:58 PM...I have to modify the existing code, then upload to our ftp site.
Code is my weakness...  :embarrassed:
Title: Re: Adding a pdf to our website
Post by: Lumpy on March 25, 2011, 08:28:52 AM
Thanks Joe and Sabrina.  :lmao: Turd Polisher. I love that!
Title: Re: Adding a pdf to our website
Post by: johnhodges on April 30, 2011, 01:11:30 AM
Just test if it is working.
Upload your pdf file to server... and add these line to your website.
<a href="yourfile.pdf">open pdf</a>.