如何生成保存在谷歌驱动器中的文件预览? [英] How to generate preview of documents saved in google drive?

查看:117
本文介绍了如何生成保存在谷歌驱动器中的文件预览?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用google查看器在Google云端硬盘中创建一个预览文件 -



https://docs.google.com/viewer?authuser=0&srcid= {一些文档ID}& pid = explorer& amp ; a = v& chrome = false& embedded = true

不幸的是,它只适用于pdf文件。另一个重要的一点是,我希望在不将上传的文档公开的情况下执行此操作。尝试将此URL用于PDF: http:/ /docs.google.com/viewer?url=https%3A%2F%2Fdocs.google.com%2Fuc%3Fexport%3Ddownload%26id%3D {fileID}& embedded = true



以及其他文件的此网址: https://docs.google.com/viewer?url=https%3A%2F%2Fdocs.google.com%2Fdocument%2Fd%2F {fileID}%2Fexport% 3Fformat = pdf& embedded = true



请记住,文件应该是公开的。


I am trying trying to create a preview of a document saved in google drive using google viewer with -

https://docs.google.com/viewer?authuser=0&srcid={some document id}&pid=explorer&a=v&chrome=false&embedded=true

Unfortunately it only works for pdf files. The other important point is that I want to do it without making the uploaded document public.

解决方案

Try using this URL for PDF: http://docs.google.com/viewer?url=https%3A%2F%2Fdocs.google.com%2Fuc%3Fexport%3Ddownload%26id%3D{fileID}&embedded=true

and this URL for other files: https://docs.google.com/viewer?url=https%3A%2F%2Fdocs.google.com%2Fdocument%2Fd%2F{fileID}%2Fexport%3Fformat=pdf&embedded=true

Keep in mind that files should be public.

这篇关于如何生成保存在谷歌驱动器中的文件预览?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆