Questions tagged [google-docs]

Questions related to interacting with Google word processing Documents programmatically. Usage questions about the web application should be posted at Web Applications Stack Exchange.

Google Docs is a cloud-based application and service for creating and collaborating on word processing documents. The service supports an internal API for Google Apps Script as well as an External API.

Usage questions about the web application should be posted at Web Applications Stack Exchange or the Google Drive Help Center instead of here.

Note: Google has historically used the brand "Google Docs" to encompass a suite of products, but since conforming to that would introduce ambiguity here, the tag is specifically for word processing documents while refers to the suite.

3539 questions
17
votes
0 answers

Any way to link to a specific Google Docs version (revision) using a shareable link?

I know you can share a specific Google Doc with a shareable link, but is there a way to share a specific revision, or "named version" for viewing only? I found this stackoverflow post from a few years ago showing how you can do it, but it no longer…
KeepCool
  • 497
  • 1
  • 6
  • 24
17
votes
4 answers

How can I link a Google spreadsheet to PostgreSQL?

How can I link a Google spreadsheet to PostgreSQL? I googled and got some sample code for MySQL, and a couple of products which do it. As per this link ,support exists for a few databases.
Jayadevan
  • 1,306
  • 2
  • 12
  • 33
17
votes
6 answers

how to extract formatted text content from PDF

How can I extract the text content (not images) from a PDF while (roughly) maintaining the style and layout like Google Docs can?
hoju
  • 28,392
  • 37
  • 134
  • 178
17
votes
3 answers

Version Control with Google Docs Best Practices?

From a quick perusal, it seems that Google Docs does not support version control the way git or svn does. My question is: If I want to store all my documents on Google Docs, what is the best way to make them be capable of branch/merge type version…
Lance
  • 75,200
  • 93
  • 289
  • 503
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
1 answer

Add images to Google Document via Google Apps Script

How can you add images to a Google Document (not Spreadsheet or Presentation) via Google Apps Script. I don't see an addImage method. Surely the team would not have left this out. http://code.google.com/googleapps/appsscript/class_document.html
ehfeng
  • 3,807
  • 4
  • 33
  • 42
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
3 answers

Capture text selection in Google Docs

I'm writing a Chrome extension that captures the user text selection and sends the selected text to Google search. manifest.json { "manifest_version": 2, "name": "Selection Extension", "description": "Search your selected text", "version":…
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
16
votes
1 answer

How to poll a Google Doc from an add-on

A documented restriction with document and sheet add-ons is that Apps Script cannot tell what a user does outside of the add-on. This tantalizing tip is given: It is possible to poll for changes in a file's contents from a sidebar's client-side…
Mogsdad
  • 44,709
  • 21
  • 151
  • 275
16
votes
4 answers

Color scale with conditional formatting in Google Spreadsheet

I need a color scale on a row or column in Google Spreadsheet, like the one provided by Microsoft Office Excel conditional formatting with color scale: I couldn't find a Google Script Gallery Script that can do exactly this job. Setting conditional…
16
votes
1 answer

How To Have One Script In multiple containers?

I have a container-bound Google Apps Script that is bound to a document, it works fine, adds the menu, works fine. My question is, how do I automatically have the container bound script automatically run in EVERY DOCUMENT? here is my code: var…
Ari Porad
  • 2,834
  • 3
  • 33
  • 51
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
15
votes
4 answers

Force iFrame links (in embedded Google Doc) to open in new window

Very oddly, there seems to be no way of setting Google Document links to open in a new window. (target="_blank"). When publishing a Google Doc and using the embed functionality, an iframe snippet is generated:
dani
  • 4,880
  • 8
  • 55
  • 95
15
votes
7 answers

Create a Google Doc file directly in a Google Drive folder

How do I create a Google document in a Google Drive folder? I know that I can create a file in a folder like this. var folder = DriveApp.createFolder("A Folder") folder.createFile("filename.file", "Some text") But how I can create a document in a…
Oliver Edholm
  • 151
  • 1
  • 1
  • 3