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
9
votes
2 answers

Insert a table into google doc at cursor position

I am working on a Google Docs add on that turns text into a table. It allows the user to either 1) select some text or 2) place their cursor inside the text they want, and when a custom button in the sidebar is clicked, the script will: Insert a…
Jackson Petty
  • 161
  • 1
  • 10
9
votes
2 answers

How does Google Docs store documents (on the backend)?

I half imagine there being these great .docs in the sky... but another part of me doubts that my documents are even being stored in anything we'd traditionally call a "file." Does Google have its own document format? I feel like it must. Some branch…
Toph
  • 2,561
  • 2
  • 24
  • 28
9
votes
1 answer

How do I get Google search results from urlfetch in google apps script

I have been trying the following code var response = UrlFetchApp.fetch("https://www.google.com/#q=this+is+a+test"); var contentText = response.getContentText(); Logger.log(contentText); var…
Kevrone
  • 614
  • 2
  • 11
  • 22
9
votes
4 answers

Google Doc Spreadsheet Doesn't Wrap Text When Editing

When I edit text in a cell, the editor forces all the text to a single line. When I exit the cell it goes back to wrapping just fine, but its annoying that when I double click on the cell it expands it out and puts my cursor at the end of the cell.…
Hoopdady
  • 2,296
  • 3
  • 25
  • 40
9
votes
2 answers

How do etherpad & Google Docs do ChangeSets

I'm curious to learn how Etherpad and Google Docs automatically save data. When you're writing a text document the products send only the changes to the server. Any idea how this technology works and where I can go to learn more about the…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
9
votes
1 answer

How to programmatically create and manage Google Forms via Google Document List API

We have a very specific need. We want to create a generic (Java based) registration system for Event organizers. So every Event organizer can define a custom form on our application, and then we collect the data from users for that particular event.…
sachinaero
  • 205
  • 1
  • 3
  • 7
9
votes
1 answer

Showing document from Google Docs in a WebView

Problem with showing google docs in WebView (Android) this is my code mWebView=(WebView)findViewById(R.id.web); mWebView.getSettings().setJavaScriptEnabled(true); mWebView.loadUrl("https://docs.google.com/viewer?url="+…
Osama Abu Qauod
  • 223
  • 1
  • 4
  • 13
9
votes
2 answers

Using Python, how can I read plain text from a Google Doc?

I am attempting to read the raw text/content of a Google Doc (just a plain document, not a spreadsheet or presentation) from within a Python script, but so far have had little success. Here's what I've tried: import gdata.docs.service client =…
user2046358
  • 93
  • 1
  • 1
  • 3
9
votes
3 answers

How can I generate a multipage text document from a single page template in google-apps-script?

I have to generate labels from a list of user data stored in a spreadsheet. Right now I get everything working nicely except that when I output more than 16 items (the number of labels per page) I have more than one document, each of them being a…
Serge insas
  • 45,904
  • 7
  • 105
  • 131
8
votes
2 answers

Accessing google docs revision history through the API using R?

I wish to download and analyse the revision history of one of my google docs using R, finding out statistics like how many edits did whom. I see that there are already some ways for accessing google docs using R. Does anyone know upfront (before I…
Tal Galili
  • 24,605
  • 44
  • 129
  • 187
8
votes
1 answer

How to append table after specific text in google docs using google apps script?

I want to append table to google doc after specific text. Here is my attempt. var body = somedoc.getBody(); var range = body.findText("#PLACEHOLDER#"); body.appendTable(data); Here data is some multidimensional array. This works fine.…
Maths89
  • 476
  • 3
  • 15
8
votes
2 answers

Section Word Count in Google Docs

Is it possible for a Google Docs add-on to count word per heading (section)? The following image shows what I want. Is there a way to display this kind of word count information in a sidebar or any other way?
VorganHaze
  • 1,887
  • 1
  • 12
  • 35
8
votes
1 answer

Can I submit form info to Google Spreadsheets with jQuery's AJAX?

I like being able to use google spreadsheets, but it's tricky to integrate into my site visually. So I was thinking that I would recreate their form (an easy cut/paste), submit the form via AJAX, the data would go to the spreadsheet and I could…
doub1ejack
  • 10,627
  • 20
  • 66
  • 125
8
votes
1 answer

How to prevent Command+Option+M from minimizing Safari

In version 10.0 Safari started responding to Command+Option+M shortcut along with standard Command+M. This causes issues in Google Docs as there Command+Option+M means "Add comment". How to fix that?
mikryz
  • 480
  • 5
  • 13
8
votes
1 answer

Bulk convert csv files in Google drive to Google Sheets

I'm trying to select a few csv files that are in my Google drive and convert them to Google Sheets files. I know that I can do this one by one using the Open option, but since I have hundreds of files, I'm looking for a way to do this using…
kkotak
  • 353
  • 3
  • 11