SitePoint Sponsor

User Tag List

Results 1 to 20 of 20
  1. #1
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How I add PDF file?

    Want to include a newsletter that someone sent me in my site. It is pdf format. Do I save it as an image or a file?
    Have tried the <a href> and <img src> and can't seem to get it to open.

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,342
    Mentioned
    214 Post(s)
    Tagged
    5 Thread(s)
    If you just want to link to it, then <a href="filepath/newsletter.pdf">Newsletter</a> should open it in a PDF viewer.

  3. #3
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I keep getting the message "your current security settings do not allow this file to be downloaded" when I click on the link?

  4. #4
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,342
    Mentioned
    214 Post(s)
    Tagged
    5 Thread(s)
    Is the PDF file hosted on your server? Which browser are you using? Can you provide a link we can test?

  5. #5
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Using IE9, and yes the pdf file is locaed in my images folder. I have been able to add a pdf file in the past, but that was with Vista, and IE7. I checked the file download (enable) in IE tools, and also just downloaded the latest Adbove Reader. Same result?

    This is my entry: <p>I always look forward to receiving <a href="images/PelicanNov.pdf"> The Pelican Pouch...</a></p>

  6. #6
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,342
    Mentioned
    214 Post(s)
    Tagged
    5 Thread(s)
    I can't see why that wouldn't work. I'd suspect some IE security setting. Can you try it with another browser - Firefox, Opera or something?

  7. #7
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Please provide a link to the PDF for us to test.

  8. #8
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It does open in Firefox. sooooo guess I need to see what is going on with IE9. Jesus I am so sorry I ever bought a new PC. Vista was working fine. Now I have problems with everything.

  9. #9
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,342
    Mentioned
    214 Post(s)
    Tagged
    5 Thread(s)
    Well, at least you know there was nothing wrong with your code.

  10. #10
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I am still stymied by this "your current security settings do not allow this file to be downloaded" and at my wits end. Since the majority of my visitors use IE I need to come up with a solution. Hoping someone had this problem before and found an answer....

  11. #11
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why dont you host your PDF on some pdf online viewer sort of website like google docs and give link on your website so when people click on it they ill automatically see pdf on google pdf viewer?

  12. #12
    SitePoint Wizard bronze trophy Immerse's Avatar
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    1,661
    Mentioned
    7 Post(s)
    Tagged
    1 Thread(s)
    What is the exact URL to the PDF file?
    Make sure you're not trying to load it from your own disk (e.g. <a href="c:\pdfs\file.pdf">pdf file</a>)
    That can cause the security settings message, I think.

  13. #13
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I have not uploaded the PDF file yet, but I can view it using Firefox. NOT IE. The majority of my visitors us IE. I was able to post PDF easily when I had Vista and IE7. I have fooled with IE till I am blue in the face and I cannot understand why FF works and IE does not, and yes I know I can use Firefox but that doesn't help anyone viewing that uses IE. There has to be an answer to this...

  14. #14
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,342
    Mentioned
    214 Post(s)
    Tagged
    5 Thread(s)
    I've never had problems viewing PDFs with IE9. Can you try uploading the page and the PDF and post the link so we can test it for you? That way we can see if it's a general problem or not.

  15. #15
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This is the link http://www.stoutstandards.com/equipment.html

    pdf is at bottom of page....

  16. #16
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The link shows in FF, but when I view source in IE...it does not?

  17. #17
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Okay the pdfs now open when clicking on the site. They do not however open i IE when testing (prior to uploading). Is this typical? I know I uploaded pdfs before and was able to verify before uploading the actual file.

  18. #18
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,692
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    That is because of Windows' security settings. You won't be able to use Javascript locally with Internet Explorer either.
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!

  19. #19
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    413
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I will take your word for it..... My older PC (with Vista and IE7) allowed me to do open pdfs, verify before uploading, etc.. I am tempted to give the new one away and go back to the older model. Thanks for your help.

  20. #20
    SitePoint Enthusiast agrable's Avatar
    Join Date
    Nov 2009
    Location
    California, USA
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One easy fix that should get you out of the browser issue is to open up that PDF in Photoshop, save it as an image and link to the image on your page. Heck, you could even save the image as a low-resolution GIF (it's probably black and white, text document?) which would load quickly. Just an idea to prevent the "brain pain" that comes with trying to make IE and FF agree.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •