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

Design: using a backend server to circumvent great firewall of china

I have a front-end angular app using firebase to store user data. I currently do not have a backend set up, such as a node.js server. I would like to use the Google Docs API to upload files from my app. Since the Great Firewall of China does not (or…
compguy24
  • 937
  • 16
  • 33
7
votes
2 answers

How can I use a custom compiler for my LaTeX document in LaTeX Lab?

I'm using LaTeX, and recently LaTeX Lab, an online LaTeX interface to Google docs, was released. For the most part this online LaTeX compiler is great, and I can get a document such as this to…
D W
  • 2,979
  • 4
  • 34
  • 45
7
votes
2 answers

Iterating through words in a paragraph

So basically I have a paragraph with some text underlined, but not all text is underlined. I want to be able to iterate through the selected text and change the text size of the UN-underlined text. Essentially I want the underlined text to stick out…
tmoney226
  • 105
  • 2
  • 5
7
votes
2 answers

Google Docs simulate keyboard

I need to simulate keyboard in google docs with using JavaScript to be able print or erase characters on cursor position. Unfortunately solutions with simulating keypress event didn't work for me. I tried with and without jQuery. After some…
Sergey Kuryanov
  • 6,114
  • 30
  • 52
7
votes
2 answers

Accept Arbitrary Number of Arguments in Google Scripts Custom Function?

I'm trying to re-build COUNTIFS as a Google Scripts Custom Function and having trouble with one thing: how do I build a function that accepts an arbitrary number of arguments? If you use COUNTIFS in google sheets, the inputs look like…
bumpkin
  • 3,321
  • 4
  • 25
  • 32
7
votes
7 answers

Google drive unable to share

I cannot share on my google drive. I've tried all the usual stuff (turning it off and on again, clearing cashe, cookies etc.), and all I get is the message Sorry, sharing is unavailable at this time. Please try again later. Any ideas?
user3933457
  • 89
  • 1
  • 1
  • 2
7
votes
1 answer

Download Public Google Spreadsheet as CSV?

I have a spreadsheet, ex.: https://docs.google.com/spreadsheets/d/1_qVnTw1Cwb2Ziwta_N0p-V4_ptD6-ZypDvCIrnryNFU/pubhtml that I want to download as a CSV file. To do this, I believe I must download it from a link similar to…
Blue Sheep
  • 442
  • 7
  • 16
7
votes
3 answers

Tool to Convert External CSS to Inline CSS in Ruby?

I am messing around with GoogleDocs and it has very very primitive CSS support. If you upload an MSWord .doc or an HTML file and export it as HTML, all styles are applied inline. They have a style block in the html file, but when you upload the…
Lance
  • 75,200
  • 93
  • 289
  • 503
7
votes
1 answer

Generating a PDF using Google Docs API

Is it possible to provide HTML for the Google Docs API and have it output as a PDF? As far as I can tell, it seems like it is possible to submit an HTML document to Google Docs, and then have Google Docs convert it to a PDF. I'm checking the API…
Steven Matthews
  • 9,705
  • 45
  • 126
  • 232
7
votes
3 answers

insert image at specific point of paragraph

*I have a Google Document with a string like "text {logo} text" How do place an image where {logo} is? So far I tried: var logoElement =…
wivku
  • 2,457
  • 2
  • 33
  • 42
7
votes
1 answer

Programmatically Download Content from Drive Share Links

I'm building an application to automatically trigger a download of a file share with a user. For example, this was straight forward to implement for Dropbox links, as is outlined here. I'm trying to implement the same functionality for Google…
Cian
  • 1,579
  • 3
  • 14
  • 28
7
votes
4 answers

Remove scroll-bar from iframe

I have a form from Google docs that I embedded in my website I want the students I coach to fill out but the scrollbar is annoying me. Any way to get rid of it?
MsNikki513
  • 71
  • 1
  • 1
  • 2
7
votes
3 answers

Google Spreadsheet Script - How to test if Cell is Bold

I need to test if a given spreadsheet cell is in bold font or not. This is my script code so far. function ifBold(cell, val1, val2) { if(cell.getFontWeight() == 'bold') return val1; return val2; } It errors, telling me that 'cell'…
HelpyHelperton
  • 1,715
  • 3
  • 14
  • 10
7
votes
1 answer

Can you use Google Docs as the text editor for your own application?

I know Google Drive has an API. Is there a way to use it to essentially use Google Docs as the rich text editor for an application? I.e. I would like to be able to do the following: Create a document. Edit a document as normal, but embedded within…
7
votes
1 answer

Is there a way to write to a Google docs spreadsheet from the Linux shell?

I have a cron job that exports some data to CSV every day. Is it possible to write this data directly to a Google doc (spreadsheet) from the Linux shell (Ubuntu)?
otmezger
  • 10,410
  • 21
  • 64
  • 90