Questions tagged [google-docs-api]

The Google Docs API lets you create and modify documents. Use for questions regarding programmatic manipulation of Google documents through the REST-API. Do NOT use for direct manipulation through Google Apps Script or for access through Google Drive API.

This tag was previously used for the Google Documents List API, which was sunset in 2015. It has been replaced by the Google Drive API, which uses the tag .

1550 questions
17
votes
2 answers

How to programmatically manipulate native google doc files

Is it possible to programmatically edit a native Google document, say to make certain words bold or hyperlinks? I know I can export that to some format like DOC or ODT, do the changes and put back. But tried this way manually and saw that I lost the…
Sanjay
  • 8,755
  • 7
  • 46
  • 62
16
votes
0 answers

Force Google Doc to open without Print Layout view

Writing guides in Google Docs and sharing them with other people as read-only is great. However, even when formatting it without the "Print Layout" option (the first toggle option under View menu), every viewer opening the document will see it in…
flo5783
  • 697
  • 2
  • 6
  • 19
16
votes
7 answers

Google doc no preview available error

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…
beck
  • 2,967
  • 3
  • 16
  • 27
15
votes
2 answers

How do I interact with Google Docs from Android?

I'm interested in adding functionality to my application to read from and write to a google docs spreadsheet. I've seen other Android applications do this but I'm having trouble figuring out how I would implement this functionality in my own apps.…
Rob S.
  • 3,599
  • 6
  • 30
  • 39
14
votes
3 answers

Google API : How to authenticate without redirection?

We want to use Google Doc API to generate Document (In our own business account) when our end users do some actions on our site. The problem is that we've tried to implement the OAuth 2.0 protocol, as suggested in the v3.0 protocol documentation.…
FMaz008
  • 11,161
  • 19
  • 68
  • 100
14
votes
2 answers

Cannot embed Google Drive Files in an iframe

I recently had a problem with the Google Drive API displaying my documents. We have developed a web application that is connecting to Google Drive accounts to retrieve a user's drive files, then display in an iframe the file using its…
Elior Boukho
  • 141
  • 1
  • 1
  • 3
14
votes
6 answers

How can developers edit a Google Doc programmatically? Is there a Docs API?

There doesn't seem to be (to my knowledge) an API to edit Google Docs (not spreadsheets, their HTML based documents). Has anyone done something like the? Maybe by downloading the HTML version, editing and uploading the changes?
14
votes
2 answers

Create spreadsheet using Google Spreadsheets API in Google Drive

I have successfully created a new worksheet in an existing spreadsheet of My Google Drive account through a simple Java code mentioned in Google's official documentation on Developer Guide Sheets API but want to create a new spreadsheet in my Google…
Satyam Koyani
  • 4,236
  • 2
  • 22
  • 48
12
votes
2 answers

How to exclude trashed files when listing files in google drive

I want to list all the files in google drive using google drive api v2 . But I want to exclude files in trash in the list So I tried GET https://www.googleapis.com/drive/v2/files?trashed=false as suggested in the api documentation But still I get…
Tachyons
  • 2,131
  • 1
  • 21
  • 35
11
votes
3 answers

How can I automatically download backups of a Google Docs Spreadsheet?

I am currently using a Google Form to allow people to submit information that is stored in a Google Docs Spreadsheet. I was wondering if it is possible to automate a backup of the spreadsheet at regular intervals. For example, every Friday the…
Ryan
  • 2,433
  • 5
  • 31
  • 41
11
votes
1 answer

I want Google Docs embeddable PDF viewer not to display "open external" link

I am making a pdf viewer using google doc viewer. I am facing an issue. I don't want the user to download the pdf. If user clicks open external button, an external application is opened and pdf can be viewed. I don't want that button. What can I…
Ali Zia
  • 3,825
  • 5
  • 29
  • 77
11
votes
3 answers

How to get Google docs last edit date

I am working on an app in which I need to show the date when google doc was last edited. Snapshot Here I am able to get last modified date through Drive api But it is different from last edited date for cases when file's metadata (e.g. permission)…
Saurabh Sharma
  • 111
  • 1
  • 1
  • 3
11
votes
1 answer

Permanently delete file from google drive

How permanently delete file on google drive using google script I find only method setTrashed. It moved file into Trash, but how remove file permanently
Delf
  • 113
  • 1
  • 1
  • 5
11
votes
4 answers

edit Google Docs using Emacs?

How can I edit Google Drive text documents using Emacs and mirror my changes back to the Google Doc? I found a Google command line program, as well as something called gclient, which is part of Emacsspeak, but they seem to require Linux or Windows,…
11
votes
4 answers

How do I connect Android apps with Google Sheets spreadsheets?

I'm trying to do an Android app that needs to work with Google spreadsheet API. I'm new in this, so I'm starting with the version 3 of the api: https://developers.google.com/google-apps/spreadsheets/ I followed all the steps, downloaded all the jar…