View PDF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Slaxer13
    New Member
    • Jun 2014
    • 106

    View PDF

    Hi people,
    This is my first attempt at javascript so don't mind my lack of knowledge. Can someone tell me how can i, when i click a link or button (whichever is the easiest), be able to see a PDF file in browser without having to download it?

    Any info needed just let me know.
    Thanks for the help.
    Slaxer13
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    As far as I'm aware, that's a browser setting, not something you can control from javascript.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      Can someone tell me how can i, when i click a link or button (whichever is the easiest), be able to see a PDF file in browser without having to download it?
      you have to download it in any case–you can’t see something that’s not there.

      other than that (as already mentioned) whether the PDF is shown in the browser or saved to disk, is a browser setting.

      Comment

      • computerfox
        Contributor
        • Mar 2010
        • 276

        #4
        You can have an embed object or an iframe with the path to the PDF. I don't believe you have to download the PDF as many sites display it in the browser THEN you have the option of saving it. No need for JavaScript, simply embed with a path. The file might be cached, but not downloaded.

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          Cached means downloaded, but not necessarily saved. If you can see it in your browser, then it's been downloaded. And usually that also means it's saved to the disk in a temporary cache location.

          With PDFs and other third party software, whether it is rendered in the browser window or in it's own separate window is a setting in the browser plug in.

          Comment

          • Slaxer13
            New Member
            • Jun 2014
            • 106

            #6
            So basically in every browser even when i see a pdf online it has been download even if only in a temp right?

            Comment

            • Dormilich
              Recognized Expert Expert
              • Aug 2008
              • 8694

              #7
              that’s correct.

              Comment

              • Slaxer13
                New Member
                • Jun 2014
                • 106

                #8
                Thank you for all the help ;)

                Comment

                Working...