search

Home  >  Q&A  >  body text

Display PDFs on Android web browsers without "downloading" first: a step-by-step guide

Is there a way to have a stock Android browser automatically open a PDF, Word, or other typical file without going through the process of downloading the file and then having the user open the file from the downloaded app or the notification bar?

We have a web application that has a lot of documents that we want to include without having to convert them to HTML, but it's not easy to train users to have them download the file and open it manually.

On iOS, these files are displayed inline in the browser. I would like a way to have the browser automatically launch the files into Acrobat Reader or QuickOffice or whatever program the user has to display them.

Does anyone know any solution? I know Google Docs has some PDF viewing support, but people using our web app may not have public internet access in all cases and may have access to a local web server.

P粉556159786P粉556159786241 days ago711

reply all(1)I'll reply

  • P粉251903163

    P粉2519031632024-03-26 09:35:49

    You can open PDF files in Google Docs Viewer by appending the URL to:

    https://docs.google.com/gview?embedded=true&url=
    

    This will open the PDF file in the default browser or WebView.

    A list of supported formats is available here .

    reply
    0
  • Cancelreply