Do we need a google account to use Google documents in a web application?

How can I use Google documents to view downloaded files (.doc, .txt, .pdf, .xls) in my web application?

+4
source share
2 answers

You can use the viewer in an iframe :

 <iframe src="http://docs.google.com/viewer?url=http://www.example.com/path/to/file.pdf&embedded=true" frameborder="1" style="width: 700px;height: 920px;"> <noframes> YU NO support iframes? </noframes> </iframe> 

You will find a list of supported file types here . Presently:

Google Docs supports over 15 different file types, listed below:

  • Microsoft Word (.DOC and. DOCX)
  • Microsoft Excel (.XLS and .XLSX)
  • Microsoft PowerPoint (.PPT and .PPTX)
  • Adobe Portable Document Format (.PDF)
  • Apple Pages (.PAGES)
  • Adobe Illustrator (.AI)
  • Adobe Photoshop (.PSD)
  • Tagged Image File Format (.TIFF)
  • Autodesk AutoCad (.DXF)
  • Scalable Vector Graphics (.SVG)
  • PostScript (.EPS, .PS)
  • TrueType (.TTF)
  • XML Paper Specification (.XPS)
  • Types of archive files (.ZIP and .RAR)

If you need more than just browsing, do as the other answers suggest.

+3
source

You need to use the Google Docs API , and yes, you need a Google account to use the API . How else could you determine which files to list?

Actually, if you think about it, the answer to your question about whether you need a Google account is “possible”. It really depends on your requirements. If you want to write an application that displays and processes other people's files, then no, you don’t have to have a Google account for development purposes. You use oAuth to log in to your user account.

However, in order to get the API key, you need to have a Google account, but to the extent that you need your Google account.

+1
source

All Articles