Can I force a PDF open in browser?

Posted on 2009-04-27
Last Modified: 2012-05-06
I'm wondering if its posable to force a PDF to open in a browser window and not in Reader.  It seams customers are clicking the links, files are being downloaded and the user is not realizing anything has happened.  Can I just force them to open in the browser, only downloading if they hit save?
Question by:graphxdiva
    LVL 2

    Accepted Solution

    I use (and work) the embed Tag:

    <embed src="file.pdf#toolbar=0&navpanes=0&scrollbar=0" width="500" height="375"></embed>

    The params after # are for Adobe reader only (i don't have time to test in others readers). Try it.
    LVL 36

    Expert Comment

    by:Loganathan Natarajan
    If you use PHP, you can read the pdf and open it in the browser...

    do you want to work on this idea?
    LVL 36

    Expert Comment

    by:Loganathan Natarajan
    have you tried?

    Author Comment

    Could you give me an example of doing it in PHP?  I'd be interested in this method.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now