Sudipta Som
Sudipta Som

Reputation: 6567

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:

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?

Upvotes: 7

Views: 1865

Answers (1)

Micah Hainline
Micah Hainline

Reputation: 14427

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

Upvotes: 4

Related Questions