Wednesday, January 19, 2011

How to Make a PDF Download Link

There are two ways to create a download link for a PDF on your blog or website. The first involves a PDF hosting site, the other can be used if you have upload space on your website host. You can either upload the PDF to a PDF/Document Hosting website, such as Keep and Share and get the download link they give you after you upload. Or upload the file to your web host, and use this code.

To create a download link, copy and paste this code <a href="File.pdf">Download PDF</a> and replace the File.pdf with your PDF file location or URL.

If you'd rather display the actual PDF on your website, convert the PDF to SWF using SWFTOOLS.  Then upload the file to a SWF hosting site or your web host as detailed above and use this code, replacing nameofdoc.swf with your SWF file location or URL:
<object width="595" height="842">
  <param name="MOVIE" value="nameofdoc.swf">
  <param name="PLAY" value="true">
  <param name="LOOP" value="true">
  <param name="QUALITY" value="high">
  <embed src="nameofdoc.swf" width="595" height="842"
   play="true" align="" loop="true" quality="high"
   TYPE="application/x-shockwave-flash"
   PLUGINSPAGE="[[http://www.macromedia.com/go/getflashplaye]r]">
  </embed>
</object>


That should do it.

No comments:

Post a Comment