Php pdf viewer without download






















I have a very simple pure html file in which I have many PDF files. Madara's Ghost k 49 49 gold badges silver badges bronze badges. Seems this is a known problem for Chrome. Are you seeing the same problems elsewhere too? For Chrome fix you can use this chrome. Add a comment. Active Oldest Votes. Original Answer Outdated, from Viewing the PDF file in the browser without download requires an add-on to the client's browser.

There are two other approaches: Convert the file to HTML, image, or any other format that can be directly viewed in the browser. Aziz Aziz I think this answer has the closest solution to my problem. Thanks Aziz — woninana. In , a Flash-based anything is never the best.

FrankSeifert: That answer was in Flash was a thing back then : I'll update it — Aziz. Bert Bert 1, 2 2 gold badges 14 14 silver badges 25 25 bronze badges.

VishnuMoorthy VishnuMoorthy 41 3 3 bronze badges. Oleksi Oleksi He means he wants it to display in the browser, and not downloaded and viewed by Adobe Reader. Judging by the other answers and votes, you're right. But then his question should read something like "how to have a PDF open in a browser window, not in another app".

It is not that obvious what he means. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Visit chat. Linked 4. Related 0. Sign in to post your reply or Sign up for a free account.

Sign in Join Now. New Post. Hello guys, I have been able to work on this code in this article uploading files into MySQL database using php and it is working well. But now I want to be able to allow users just view the PDF or doc files without having to download them. Please I need help on this. Follow Post Reply. Frinavale 9, Expert Mod 8TB. Hi Abramfas, This is going to depend on the browser. If the browser knows how to open the file, then it will do so.

If the browser does not know what to do it will give the user the option to download the file so that they can open the file in an application that does know how to open it. For example, if the browser has a plug-in installed that allows users to view PDF files, it will use the plugin to display the file. If the browser does not have a plugin installed, it will popup a dialog that lets the user save the file to their computer so they can open it with an application that knows how to view PDF files.

This way the browser will display the file using the appropriate plugin if it can, or else the user will be prompted to download the file. Oralloy Expert MB. Abramfas, Are you trying to emulate what google mail does with attached documents, rendering them as HTML? Or, are you simply trying to display the full-document using a plug-in, as Frinny described? Orally, I am trying to display the full document with a plugin.

Frinavale, How do I insert an iframe am a bit new in php programing. Abramfs, Sounds like you are on the right path, then.



0コメント

  • 1000 / 1000