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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to get document ID or URL without access to DocumentApp?

I have a document in Google Drive which is an uploaded DOCX - because of this I have no access to DocumentApp. I need to find out the document ID, which I know is in the URL, but all the examples of ...
Jan Martin's user avatar
0 votes
0 answers
26 views

Google Apps Script deployment does not return same value as editor

Problem: When i run the Google Apps Script in the editor, it works fine and returns the selected text from Google Docs. When I test the deployment, or use the Retrieve Text From Google Docs button on ...
S. Jilani's user avatar
0 votes
0 answers
37 views

Problem with Docx editor within my web app(seeking high flexibilitty) / Google Docs API getter that returns a position of user's cursor?

I have an app focused on automation of administrative processes. It works thanks to docx templates mapped to some fields inside my db. Example: Mapped document: Dear {client.firstName} {client....
Daniel Klimek's user avatar
0 votes
1 answer
34 views

Highlight all footnote superscripts

I would like a way to highlight all of the superscripts that indicate footnotes, so that it's easier to see the footnote in a paragraph when skimming with your eyes. The goal is something like this: ...
amitrus's user avatar
  • 11
-2 votes
0 answers
14 views

Google Doc add a watermark API?

I'd like to programmatically add a watermark to a Google Doc, as I have a large number of documents I'd like to add a watermark to. I've read through the APIs and can't find any references to adding a ...
Eddie Dawydiuk's user avatar
1 vote
1 answer
56 views

Reading a google doc without user login

I am trying to create a simple webpage that loads text from a google doc I have. The page will only ever read from the doc and will run client side, no server as the page is hosted on github. No need ...
Panthera's user avatar
0 votes
0 answers
125 views

Google translate API OAuth2 scope issue

In my project I'm using the translating google API and it worked fine for few months. Now, I'm getting the following error message : Request had insufficient authentication scopes. code : 403 status :...
VivBassMan's user avatar
1 vote
1 answer
103 views

python program horizontal stapled booklet integration in google doc

I have a Google doc with around 60 pages, it's in vertical scrolling format. I am thinking of converting this doc into another doc that is printable horizontally such that it can be stapled in the ...
nunam's user avatar
  • 17
0 votes
1 answer
35 views

Remove text background with google script ( manually done by format > paragraph> borders and shading > reset )

https://docs.google.com/document/d/1VrkXwfR24nIkX9KEGquIqFgkqPAke6MDst_N7YgSOY0/edit?usp=sharing this is a sample doc what i am attempting to do is automize the flow of pressing: format> paragraph&...
Amichai Oron's user avatar
0 votes
0 answers
27 views

Privacy Concerns When Displaying PDFs via Google Docs API

I am currently using pdfjs to render pdfs that I am streaming from an S3 bucket with a temporary signed url. I am trying to keep these files private. An account is required to view them. I am ...
UnlimitedPasta's user avatar
1 vote
1 answer
44 views

How to correctly calculate indexes for nested lists using Google Docs API requests?

This is my current request object that gives me this error: "Invalid requests[23].updateParagraphStyle: Index 66 must be less than the end index of the referenced segment, 64.", A \t or \n ...
Jed Grant's user avatar
  • 1,327
0 votes
1 answer
130 views

How to increase 100 user cap for OAuth to Google API

My Google project is verified but the user cap displays 100/100. Google documentation says that OAuth user quotas "might be adjusted for specific apps based on the app history, developer ...
Artem Ilyumzhinov's user avatar
0 votes
0 answers
21 views

Read 1,000 private google docs with a service account

I am trying to read 1,000 private Google docs (all in the same google drive folder) via the google docs api, but it only works if I share each file with the service account email address. Is there a ...
Ross's user avatar
  • 11
1 vote
0 answers
31 views

How can I replicate a page in the same document using node.js, google drive api and google docs api?

The closest I found to this was the Google Drive API file.copy, however you cannot use it to copy a specific page. So I tried using get method to get the page content and then inserting it via ...
user20749778's user avatar
0 votes
1 answer
64 views

How to read a public Google doc from a Flutter app

I have a public Google doc (available to anyone with the link). I have a Flutter app (web, iPhone, and Android). I'd like to read the Google doc from the Flutter app. All the documentation seems to be ...
Thomas Fischer's user avatar
0 votes
0 answers
43 views

Google Docs won't underline misspelled words

Out of nowhere, google docs stopped underlining misspelled words. I have tried every solution (clear cache, turning off extensions, changing web browsers, etc). A solution that was suggested was to ...
alex kastelein's user avatar
0 votes
0 answers
30 views

Error 500 when copying Google Doc that contains drawings

I'm trying to create a copy of a Google Docs file into a directory. The user selects both the file and directory using the Google Picker API and I can confirm that my service has access to the ...
Artem Ilyumzhinov's user avatar
0 votes
1 answer
113 views

Python requests module not found error in google.auth.transport.requests

I have a Discord bot that logs all messages to a google Doc via the Google Doc api. On my Windows PC it works just fine but when i copied it to my Synology Nas and installed all packages it gives me ...
Lolyay's user avatar
  • 11
2 votes
0 answers
442 views

DECODER routines 'ERR_OSSL_UNSUPPORTED' in Node.js Google API on Render.com web service deployment (working locally)

I'm having an issue with my Node.js application which uses the Google API to create a document on Google Drive. Everything works fine in my local environment, but when I deploy on Render.com, I ...
Henry Quillin's user avatar
2 votes
0 answers
3k views

How to embed iframe into Google Doc

I'd like to embed an iframe into a google document. Specifically, within the document itself and not a sidebar or dialog/modal. Basically, I'd like allow users to do the following Paste link The ...
Peyton's user avatar
  • 41
1 vote
1 answer
231 views

AppsScript for Google Docs - How do I add / edit / delete Variable Smart Chips in Google Docs programmatically with appsscript addon?

AppsScript for Google Docs - How do I add / edit / delete Variable Smart Chips in Google Docs programmatically with appsscript addon? New Variable Smart Chips feature for Google Docs Reference: https:/...
Sarath Bade's user avatar
1 vote
1 answer
26 views

How to hotlink an image in DOC file with Google API?

I create new doc file on Google Docs, insert an image into it, and (there is no option to insert linked image, isn't it?) need to assign an URL to in so the image would be clickable. $docs_service = ...
zzmaster's user avatar
  • 317
1 vote
0 answers
40 views

How to update a Google doc by preserving the document properties and styling using Google drive api?

I have a use case where I have to update a google doc having some user defined styling and dropdowns. When I update the doc with the content using the Google drive api, both the user-defined styling ...
Jeslin Joseph's user avatar
0 votes
0 answers
23 views

How I can fix this problem with Google Docs API?

I write this script in React Component to include Google Docs in iframe. I try everything. Nothing works. I dont know how to fix this. Its my first time in working with Google Docs API. const Files = (...
ShArD's user avatar
  • 1
0 votes
1 answer
87 views

Google Apps Script: Get First Page Footer

I am writing a script that pulls form entry info and applies it onto a fancy little PO via Google Docs. Initially, I was using a general footer for the document; however, I found that a second page ...
Seth Murphy's user avatar
1 vote
1 answer
69 views

Extra spaces when inserting text in Google Docs tables - rich text version

Pesky Spaces As has been noted here and here on SO, Google Apps Script has a propensity to add in random new lines to tables and other elements (although the character in question seems to be \10, as ...
shman613's user avatar
  • 196
0 votes
0 answers
56 views

using go quickstart for google-drive-api doesn't work

I'm using the getting started guide in the go quickstart. I seem to have followed all the steps, but keep getting an error when prompted for the token. Using the python quickstart guide, I am able to ...
user3117405's user avatar
2 votes
1 answer
147 views

How to authenticate fetch request with Google Docs API to download HTML

I am building a service that downloads the HTML form of a Google Doc from the Google Docs API and converts it to .mediawiki. The following is the code for the project, but it fails to get the page I ...
Karan Sapolia's user avatar
0 votes
1 answer
70 views

sheets to docs API Request for Access Issue ( Via Method: files.copy )

( Method: files.copy ) Please review my python code get_ipython().system('pip install --upgrade google-api-python-client') get_ipython().system('pip install google-auth==1.35.0') get_ipython().system(...
Baker Ssebandeke's user avatar
2 votes
1 answer
50 views

docs_mail_merg Request for Access Issue

Please review my Git Hub response. I have also attached my Python code to this post. from __future__ import print_function import time from googleapiclient.discovery import build from ...
Baker Ssebandeke's user avatar
-1 votes
1 answer
25 views

Export Google Calendar to Google Doc Table - Extra Line Return

I've created a script to generate a calendar of the week's events in Google Docs. It's working, but I can't figure out how to remove that extra line return at the beginning of each cell in the 2nd ...
Michael Collins's user avatar
-1 votes
1 answer
174 views

Using Apps Script, how can I display a google doc checklist from information in a google sheet?

I am generating a google doc from a google sheet. The sheet contains a list of weeks down the side and along the top each column is an activity header. The body of the spreadsheet is the number of ...
grantc's user avatar
  • 35
0 votes
1 answer
177 views

Google Drive API v3 suddenly started exporting docs with Base64 encoded images

I've been using Google Drive v3 to export Google Docs to html for the past four years. (https://googleapis.dev/ruby/google-api-client/latest/Google/Apis/DriveV3/DriveService.html#export_file-...
Pedro Bernardes's user avatar
1 vote
1 answer
70 views

Using functions in Google Apps Script to build a request and submit updates through batchUpdate with Google Docs API

I have merged the cells of a given table in a Google Doc using Google Docs API through a function in Google Apps Script (i.e. javascript). My function goes through the following steps: Loop through ...
Chuck Ramirez's user avatar
1 vote
1 answer
99 views

How can I change the color of a specific border of a Google Docs table by using Google Apps Script?

I have several tables in a Google Docs document, all of them have only one cell and only their left border visible. I've achieved this (manually) by setting each other borders width to 0. My goal is ...
justarandomname's user avatar
0 votes
1 answer
52 views

How can I get the date when cost was greater than or equal a certain value?

As the title suggests, I want to build a query which returns the date when the total cost of an account was greater than or equal to a certain value. So far, I have made this: $query = 'SELECT ...
Kostas's user avatar
  • 3
0 votes
0 answers
56 views

How to create smart chips from raw text using python google api?

I have an use case where I need to create smart chips in a google doc using the google python api. I am not able to find anything related to it in the official docs.
Vishnu P N's user avatar
0 votes
1 answer
60 views

Personal Gmail Google Doc Apps Script Will Not Allow Authorizing - This app is blocked

I can't seem to authorize a Google Doc Apps Script to run. When adding permissions Google keeps returning: "This app is blocked This app tried to access sensitive info in your Google Account. To ...
user10583271's user avatar
1 vote
1 answer
104 views

Is there a way to merge two cells in column using google appscript in Google Docs?

I was searching for a way to provide merge of two cells in a column. There is a way to merge it in a row with cell object and merge method, something like this: var cells = [ [ 'Row 1, Cell 1'...
David's user avatar
  • 1,943
1 vote
1 answer
112 views

Set table borders in Google Document with Google Script App

I am trying to alter table borders with Google Script App (and Google API). I based my code on this post here, but without success. I am getting these two errors: Cannot read properties of undefined (...
Coelho's user avatar
  • 13
0 votes
0 answers
28 views

Inserting a HorizontalRule into a Google Doc with Python

I can't find a function in the Python Google Docs API that can insert a HorizontalRule. I tried using the "Try this method" window in the documentation pages to find a property that allows ...
Austin Y's user avatar
1 vote
1 answer
817 views

How to merge multiple Google docs into one file using Google Apps Script

I have the same format Google documents in the Google Drive folder that I want to combine/merge into one Google Doc file, the sample of the Google docs to be merged looks like this. Here is the sample ...
user avatar
0 votes
1 answer
73 views

Google Script - findText is not defined

I'm trying to make a script for my Google document so I can format specific paragraphs in some "chat log" segments according to the nickname the paragraph begins with (example: "...
bogProphet's user avatar
0 votes
0 answers
108 views

Calling Google Apps Script functions via fetch request is slow

I am trying to call some specific functions on Apps Script bounded to a Google Document from my main.js. For example, I want to call this test function: const testingEnv = ()=>{ body....
VladTbk321's user avatar
0 votes
0 answers
106 views

Google docs api returning INVALID ARGUMENT

Facing an odd issue of the Google docs API returning status - "INVALID_ARGUMENT" and message as "Request contains an invalid argument" for some documents. We have an app that ...
Sahil Thakur's user avatar
0 votes
0 answers
36 views

How to add a text on Footer on Google Docs API

I'm trying to add a footer to my docs in Go. Here is my code. createFooterReq := &docs.Request{ CreateFooter: &docs.CreateFooterRequest{ SectionBreakLocation: &docs....
İkram MERT's user avatar
0 votes
0 answers
86 views

How to add data to in table of google doc APİ | How to add table on docs Google APİ

First of all soory my bad english. I wanted to create a table in the docs and write data into it. you can see my code data := [][]string{ {"Ad", "Soyad", "no"}, ...
İkram MERT's user avatar
0 votes
0 answers
121 views

Google Docs API Batch Update Replace Image Suddenly Returns HttpError 400

I'm facing a really bizarre issue with the Google Docs API when trying to replace placeholder images. Initially, my code ran without any issues, successfully replacing hundreds of images. However, ...
Roche's user avatar
  • 1
0 votes
1 answer
147 views

How to get the assignee of a comment in Google Docs?

There seems to be no mention in the official documentation of a method to get (or set) the assignee of a comment in a google doc. Is there any known way, including perhaps some clever workaround, to ...
GJ.'s user avatar
  • 5,286
0 votes
0 answers
21 views

Tech Support: Google Docs First Page Not Visible

The first page of my google docs is not appearing. For example, I am not able to see what I type on the first page, even though I know that something is being typed (auto-correct suggestions). ...
Frederik's user avatar

1
2 3 4 5
32