Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
338 views
in Technique[技术] by (71.8m points)

android - Reaching the bandwidth limit for viewing pdf files in WebView through Google docs

I have an android application that shows pdf files from link using google doc's link prefix in WebView. Sometimes, not too often, instead of showing the content in webview it shows:

"You've reached the bandwith limit for viewing or downloading files that aren't in Google Docs format. Please try again later. You can also try to download the original codument by clicking here"

Google's support page tells that the bandwidth limit is 300 MB per hour, but the thing is my pdf files' size is 300-400 kb and it wasn't shown even a single time before. How can i avoid this problem? Or suggest any other ways to display pdf from link if possible. Thank you.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

As wished by the original poster, the comment as an answer:

It is very likely that Google Docs does calculate in the size of the rendered document (kind of plausible; they render the PDF and make it available as Google Docs document). In this case, you may easily get 1 MB per page, no matter how small or big the PDF is. And if you deal with badly prepared press-ready PDFs, you very easily can fill up your hourly quota.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...