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
6
votes
1 answer

Google Docs API - Impersonate User File Download

Using the Google Docs Java API with a Google Apps account, is it possible to impersonate a user and download a file? When I run the program below, it is clearly logging on to the domain and impersonating the user because it retrieves the details of…
6
votes
1 answer

Google API get detailed revision history for Doc

I am able to a list of revisions for a Google Doc using the below (using the google-drive3 Rust crate), which gives me the information from the "Activity" tab from a selected file in Google Drive. I would however like the detailed version history…
Max888
  • 3,089
  • 24
  • 55
6
votes
0 answers

Google Docs link preview functionality displays incorrect thumbnail Image

The link details that popups by mousing over a hyperlink in Google docs shows a preview of the link with a thumbnail image and short description. Recently, found a webpage from our website in Google docs displays irrelevant thumbnail image in the…
Kaira
  • 61
  • 1
6
votes
4 answers

How to (hack and) maximize Google Doc's Drawing Window to full screen?

Friends of the Internets, Google Docs's Intert Drawing tool works, except for the fact that it wastes half of all 16:9 screens, since it opens a forced-square window that is UNRESIZABLE, cripling all drawings that are intended for LANDSCAPE and/or…
Sam
  • 15,254
  • 25
  • 90
  • 145
6
votes
1 answer

How can I add event Listener to google sheets link in chrome extension's content script?

I'm developing a chrome extension to open links from different columns to their assigned tab. Using Google apps script API to create a context of the sheet inside the chrome extension. But Google apps script API is a long path and I can't avoid…
6
votes
1 answer

Pdf sometimes not loading with google embedded viewer on Android

I am using the google docs pdf embedded viewer in my android app to display my pdfs. Sometimes the viewer doesn't load my file even though most of the time it does and it's pretty random when it doesn't. I generate the url with…
Florian Saurs
  • 111
  • 2
  • 3
6
votes
0 answers

Google Docs Viewer terms of use

Can we use docs.google.com/viewer (or docs.google.com/gview) service to organize a preview of the files (doc, pdf etc) on our commercial web app? Or is there any other solution from Google Docs?
6
votes
2 answers

Retrieve linked URL from text in a Google Document using Google Apps Script

I'm working with Google Apps Script and I'm trying to retrieve the URL hyperlinked to one word in the text string returned by the GAS function below, but I'm getting the error listed below. As you can see from my code, I'm a rookie, so any help and…
Mr. B
  • 2,677
  • 6
  • 32
  • 42
6
votes
4 answers

Extract DOCX Comments

I'm a teacher. I want a list of all the students who commented on the essay I assigned, and what they said. The Drive API stuff was too challenging for me, but I figured I could download them as a zip and parse the XML. The comments are tagged in…
Andrew Saltz
  • 305
  • 4
  • 16
6
votes
1 answer

Use Google Apps Script to apply heading style to all instances of a word

I am using Google App Scripts in a Google Doc, how do you write a function to find all instances of a word and apply a heading style to it: For example, I want every instance of "Dogs"... Cats Dogs Fish and style "dogs" with "Heading 2" so it…
heart.cooks.mind
  • 1,065
  • 1
  • 9
  • 22
6
votes
3 answers

Google spreadsheet, comparing durations

I calculated a duration between two times, e.g. between 9:00 am and 11:00 am. So far so good. Now I need to decide if this duration is less 6 hours. I do remember that this was pain in the s in excel but nevertheless I tried it the simple…
herrwolken
  • 389
  • 1
  • 4
  • 12
6
votes
3 answers

Embed Google drawing in a Github wiki

Is there a way to embed a public Google drawing in a GitHub wiki. I would prefer not save embed a png file but instead have a link to a living dokument.
Martin Andersen
  • 2,460
  • 2
  • 38
  • 66
6
votes
2 answers

Replace \n\n with \n\t in Google Docs

I would like to replace two carriage returns (\n\n) with a carriage return and a tab (\n\t) in Google Docs (regular document NOT a spreadsheet). If I enter \n\t in replace with the simple text, as typed, is inserted, not the nonprinting characters.…
idomeneus
  • 143
  • 2
  • 9
6
votes
5 answers

Display the pdf file(stored in google drive) in webview by using google docs

My pdf file is stored in some website ex: http://www.pdf995.com/samples/pdf.pdf Now I can't rely on other websites for my app. So I've downloaded the pdf doc uploaded in google drive Got my own link for pdf Trying to open that in webview using…
Prabs
  • 4,923
  • 6
  • 38
  • 59
6
votes
2 answers

Combine two cells in a new cell, replace all spaces with dash, and lowercase

Trying to combine two cells in a Google spreadsheet, replace all the spaces with a "-", and lowercase everything. Cell 1: GWG-1 Cell 2: Product Name 1 New Cell 3: gwg-1-product-name-1
frshjb373
  • 627
  • 9
  • 27