Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the way the google docs website displays a PDF in Android?

I am using the following link inside a WebView to show a pdf file in my android application:

  • http://docs.google.com/gview?embedded=true&url=http://174.136.1.35/dev/android/1_android-Survey-Report-for-pdf-1200-x-768.pdf

This works, and displays the PDF, as you can see in the attached images. The problem I have is that

I want to disable the zoom controls, and the desktop and download links.

Is this possible, and if so, how?

like image 605
Sudipta Som Avatar asked Feb 24 '11 09:02

Sudipta Som


1 Answers

You are basically opening a web view and loading it with a webpage from the internet, specifically Google Docs. Without some special functionality built into the website, there isn't going to be way to get rid of the extra buttons, links, and labels you're seeing. Instead of this, you could download the PDF that your link is pointing to as a PDF and try to display that directly. There is a stack overflow question on this topic

like image 198
Micah Hainline Avatar answered Nov 15 '22 12:11

Micah Hainline