Google docs viewer url parameters

天涯浪子 提交于 2019-12-06 20:29:21

问题


Is there any sort of documentation on exactly what parameters you can put in the url of Google viewer?

Originally, I thought it was just url,embedded,chrome, but I've recently come accross other funny ones like a,pagenumber, and a few others for authentication etc.

Any clues?


回答1:


One I know is "chrome"

If you've got https://docs.google.com/viewer?........;chrome=true

then you see a fairly heavy UI version of that doc, however with "chrome=false" you get a compact version.

But indeed, I'd like a complete list myself!




回答2:


You can pass q=whatever to pass a search query to the viewer.




回答3:


I'm also on a quest to discover some of the parameters of the viewer. the "chrome" parameter doesn't seem to do anything, though. Is this supposed to be the same as embedded=true?

Parameters I know of:

url= (obviously)
embedded= (obviously)
hl= set language of UI (tooltips)
#:0.page.1 = jump to page 2 (page 1 is numbered 0) - this is unreliable and often requires a refresh after the first load, defeating the purpose.

That said, when I use the Google Docs viewer on my site, "fit page to screen" is the default view without any parameters. So maybe I'm misunderstanding your question.

Source: For convenience, this is a full quote of the sole answer (it is from user k3david) to the crosspost of this question @Doc has posted to the Google support forum in 2011.



来源:https://stackoverflow.com/questions/4917519/google-docs-viewer-url-parameters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!