Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,510

    Default Downloading PDF files?

    A user wrote me and asked if Web Designer can download PDF files.

    I said yes. You add a link to the PDF file in the index_htm_files folder. Publish the site then place the PDF file in the index_htm_files folder. Works fine. Except, at least on my computer, the PDF file opens in my browser where of course I can save it if I want.

    But, is there a way to just have the file download to the visitor's computer?

  2. #2

    Default Re: Downloading PDF files?

    You can add instructions to the page which tell the user to right-click the link and choose 'save target as' or 'save link as' (depending which browser they use).
    This will then download the file rather than open it in the browser.

  3. #3
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,510

    Default Re: Downloading PDF files?

    That's the answer I was looking for. Thanks.

  4. #4

    Default Re: Downloading PDF files?

    Can you tell me please how I will link to the pdf folder I created? I know I need to use web properties; however, pdf doesnt have URL adress or page numbers etc..thanks

  5. #5

    Default Re: Downloading PDF files?

    good question, I'd like to know also.
    R_o_n _a_l _d __C. __D_u_k_e

    x a r a . c o m..a r t i s t s ..g a l l e r y

    Xara's Facebook

    Xara Designer Pro X 16, Xara 3D7 Web Designer

  6. #6
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: Downloading PDF files?

    If you put your pdf file in the index_htm_files folder and the filename is wonderful.pdf

    make the link to index_htm_files/wonderful.pdf
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  7. #7
    Join Date
    Apr 2009
    Posts
    3

    Default Re: Downloading PDF files?

    You can do that easily with PHP code. Just google "force PDF to download"

  8. #8

    Default Re: Downloading PDF files?

    Anyone have a current membership at Experts-Exchange.com?

    Force file to download, *not* viewable within browser
    I need to find a way in which I can make a file (image files, AVI files, PDF etc.) to download rather than made viewable inside the browser instance. MIME types like *.jpeg, *.gif, *.pdf, *.wmv etc. are handled by the browser itself...but I want to override this behavior and make such file types downloadable, as soon as a user clicks on a hyperlink. This functionality is similar to what Gmail exposes when a user gets an image attachment -- there are 2 options "View" and "Download".

  9. #9
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: Downloading PDF files?

    Hi Curtis,

    I'm a member of Experts-Exchange.

    One of the suggested methods to force download references a php script. http://elouai.com/force-download.php

    Another using javascript or using server side content disposition, is at http://www.jtricks.com/bits/content_disposition.html.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

 

 

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
  •