google-document-viewer

Use Google Docs Viewer to open document from rails app (paperclup, cloudfiles)

孤人 提交于 2019-12-23 19:51:59
问题 In our rails app we use paperclip to save files to rackspace cloudfiles. We want to allow users to VIEW the files without needing to download them and use a program on their computer. We have found https://docs.google.com/viewer which looks good for the job We have the following method in the controller: def view att = Attachment.find(params[:id]) redirect_to "http://docs.google.com/viewer?url=#{CGI.escape(att.file.expiring_url((Time.now + 60.seconds)).gsub(/^http:/, "https:"))}" end This

Google doc no preview available error

≡放荡痞女 提交于 2019-12-20 09:38:36
问题 I used the google doc to display the pdf file in web broswer. It was working fine before. Now it gives no preview available. Most of the time it gives the blank screen with no preview available but sometime it opens the pdf. However i noticed that if the size of the pdf is small, it works fine but if the size is a bit larger with 10-100 or more pages, the no preview is shown. link: https://docs.google.com/gview?embedded=true&url=http://trafficpolice.gov.np/traffic/uploadfiles/56a0e8156d4ea

View PDF file on local server using google API

戏子无情 提交于 2019-12-12 05:47:57
问题 How to view PDF file or any other extensions like [doc - xls] on local server using Google Doc API I used a Wordpress plugin called "Embed Any Document" and works, but the files should be accessible on the web. but in my case the file is locally, so how to make it with the Google API directly if its not possible with any plugin? 回答1: The Google drive API gives you access to insert update delete and download the files on Google drive. There is no API that will allow you to view the file. You

Embedded Viewer API for custom documents

て烟熏妆下的殇ゞ 提交于 2019-12-11 06:14:12
问题 I would like to build a web page that list documents that are searchable & scrollable pagewise, this is very similar the the Google Books and within that space, similar to the Embedded Viewer API. I understand the the API works only from the content from Google books, is there an equivalent API that can do the very same thing on the files supplied by the user or application that is not necessarily in the google books. I also looked at google doc viewer API, features wise it appears basic

Google Document Viewer shows “No Preview Available”

梦想的初衷 提交于 2019-12-01 16:20:56
I have used Google Document Viewer to open PDF files in my Android device. A black screen with "No Preview Available" text is shown, instead of opening my PDF files. I have tested with sample PDF files from Google. They are working fine, but not my PDF files. Is there anything that i need to do from code side to view my PDF. http://docs.google.com/viewer?url=myurl.pdf larry Had a file that showed this problem. Renamed it to remove blanks in the file name, updated my link and it worked. Note that blanks were properly HTML encoded as %20 so this 'fix' shouldn't be necessary. But, I can't argue

Google Document Viewer shows “No Preview Available”

依然范特西╮ 提交于 2019-12-01 15:00:53
问题 I have used Google Document Viewer to open PDF files in my Android device. A black screen with "No Preview Available" text is shown, instead of opening my PDF files. I have tested with sample PDF files from Google. They are working fine, but not my PDF files. Is there anything that i need to do from code side to view my PDF. http://docs.google.com/viewer?url=myurl.pdf 回答1: Had a file that showed this problem. Renamed it to remove blanks in the file name, updated my link and it worked. Note