Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

I’m trying to amend cells in a Google doc using their api. But I can’t seem to delete text from the tableCell. I always get the invalid deletion range error. There is this duplicate question. But the ...
Todd's user avatar
  • 1,983
1 vote
0 answers
140 views

Problem: I am facing this error- googleapiclient.errors.HttpError: <HttpError 403 when requesting https://docs.googleapis.com/v1/documents?alt=json returned "The caller does not have ...
Hetarth Jain's user avatar
0 votes
0 answers
39 views

I have the following method that adds formatted text to a data structure for it to be used in a batchUpdate request: def add_text( self, text, bold=None, color=None, ...
HuLu ViCa's user avatar
  • 5,515
0 votes
0 answers
97 views

I am trying to build a Script App for Google Docs. The doc contains titles of style Heading2 as a numbered list, to which a prefix "Chapter " was added. Therefore I have titles that look ...
Gabriel Cretin's user avatar
2 votes
1 answer
294 views

This is what I'm trying to achieve with Google Docs via the API (as markdown): ### Numbered List with Bullet Points ### 1. Item One 2. Item Two - Sub-item A - Sub-item B 3. Item Three ### ...
Graeme's user avatar
  • 727
1 vote
1 answer
103 views

I'm working with the Google Docs API to insert a table and then populate each cell with text. The table gets inserted correctly, but when I insert text into the cells, all the content appears squished ...
Satish Mahat's user avatar
0 votes
0 answers
54 views

I'm looking to programmatically update images within Google Docs, Sheets, and Presentations. I know I can replace images via batchUp using a ReplaceImageRequest, but I have been unable to modify the ...
Philip Zaengle's user avatar
-2 votes
1 answer
178 views

I'm trying to find a way to detect what 'page number' text in a google docs document is on. I want to know this so I can determine page breaks accordingly if text would flow over onto the next page ...
Joseph Astrahan's user avatar
0 votes
2 answers
106 views

I have a Google Sheet that has long blocks of text in each cell of column H (it is input from a long-form response box in a Google Form). I want to take each response and move it onto a new page of a ...
user30073632's user avatar
3 votes
1 answer
351 views

I’m trying to create a Tab in a google doc via the python SDK (as in the new(ish) side navigation/organizational tabs, not a tab character). I see how to read and update existing tabs, but don't see ...
Alden Harwood's user avatar
0 votes
0 answers
208 views

I have been trying for weeks to just get a docx file from Google Drive using their API. I understand the way to do this would be to use the get_media method, which has worked and I am able to get the ...
wafflehouse67's user avatar
0 votes
0 answers
79 views

I’m working with the Google Docs API to retrieve the contents of a document. Used documents.get with the correct documentId and retrieved the document body. The JSON response does not include the @...
vijay 's user avatar
  • 13
0 votes
1 answer
60 views

In Google Docs, the sidebar will show you a structured tree based off your headings: However, from what I can see from the Google Docs API, the content seems to be returned as a flat list. Is there ...
gust's user avatar
  • 965
0 votes
4 answers
561 views

I am trying to read the contents of a Google Docs file by using the JavaScript googleapis API. The file exists and I can send the request, but I get a 404 error when reading the contents. To reproduce:...
Giulio Meneghin's user avatar
0 votes
0 answers
52 views

I am dynamically generating a table in Google Docs using the Google Docs API, with the table data provided in JSON format from an API. I need to rotate the table landscape. I have text paragraph also ...
Aditi Tare's user avatar
0 votes
0 answers
127 views

Currently, the page numbers in our document begin from the Table of Contents page (2). However, we want the page numbering to start from the "Third Page"(3) section instead. How can this be ...
Ritesh Kumar's user avatar
0 votes
0 answers
82 views

I am dynamically generating a table in Google Docs using the Google Docs API, with the table data provided in JSON format from an API. I need to check if the table rows across multiple pages. If it ...
Aditi Tare's user avatar
1 vote
0 answers
209 views

I'm wondering if it's possible to specify the tab (recently added to Google Docs) when exporting as PDF via the Google Drive API? (https://www.googleapis.com/drive/v3/files/{fileId}/export) I can't ...
Rupert Hoffschmidt's user avatar
1 vote
2 answers
6k views

I am attempting to read a Google doc using the Google docs API. However, for public Google docs files I don't have access to the Document ID, and cannot acquire said ID from the author. In particular ...
Pandasonsleds's user avatar
0 votes
0 answers
48 views

I’m working on a project where I need to extract the content of a specific tab within a Google Docs document and export it as a Blob or a PDF file using Google Apps Script. Currently, I can retrieve ...
Vikram Aruchamy's user avatar
1 vote
1 answer
88 views

I have a Google Docs file (link: Google Docs) that contains images and list items. One of the images is a vertical line. When I try to copy the content of this Google Doc into a new document, I ...
Vikram Aruchamy's user avatar
1 vote
2 answers
1k views

I have been trying to use the Google Docs API to retrieve the contents of a published document, however I realised that the ID in the URL is not a document ID. So does anyone have a clue as to how I ...
Minhaz's user avatar
  • 19
0 votes
1 answer
132 views

Seems like all the documentation I can find for using the Docs API with Apps Script is deprecated. I've tried many variations on the below code, but I keep getting a 404 error from the last line. I ...
ZMM's user avatar
  • 3
0 votes
0 answers
746 views

I am trying to work with Google Doc Api integration. In localhost, I successfully fetched the data from google doc. Then I just put the whole code inside an iframe. Now I am getting Access blocked: ...
Md. Sakib Khan's user avatar
0 votes
1 answer
298 views

I have retrieved necessary permissions from my admin to publish my Apps Script Extension to the internal Google Martketplace. (You can imagine it to be something similar to the tutorial here) When ...
chaooder's user avatar
  • 1,546
-1 votes
2 answers
14k views

I've got this google doc URL that I need to extract the contents from, specifically the contents in the table. https://docs.google.com/document/d/e/2PACX-...
user27223877's user avatar
0 votes
0 answers
34 views

I am changing the Embedded Object from the Google Docs Api, but the document itself is not saved. Why? $doc = $this->service->documents->get($this->iddoc); $inlineObjects = $doc->...
Dmitry Trofimov's user avatar
0 votes
0 answers
131 views

I am a super admin of my company's Google Workspace. And I have written a python script (using the Google Python Client Library) that performs two tasks: Downloads or exports a file depending on mime ...
James Hocking's user avatar
3 votes
1 answer
6k views

I have a URL to a public google doc which is published (It says published using Google Docs at the top). It has a URL in the form of https://docs.google.com/document/d/e/<Some long random string, I ...
Rbe's user avatar
  • 31
0 votes
1 answer
106 views

I was trying to "copy" several tables from a GDocs template to another document. Everything was working fine until I tried to "copy" some tables with table headers. Initially, I ...
Danny Javier Cuichn's user avatar
2 votes
0 answers
213 views

I am able to successfully access google docs within my own google drive. The problem is that when I publish the document and try to access it through the published domain, I get the error: HttpError ...
Christian Alexander's user avatar
1 vote
1 answer
160 views

I am using the quickstart Go script from this page. I have followed all the steps there and I've got my credentials.json. When I'm in the Google login page to give the OAuth consent and I click "...
Backo's user avatar
  • 13
0 votes
0 answers
87 views

I want to update a table in google docs where my number of columns are fixed to 3, a table with 2 rows and 3 columns is already present in the doc, the code has to identify a placeholder {{asas}} to ...
Shivansh Maheshwari's user avatar
0 votes
0 answers
94 views

def format(json_data): """ Extracts document title, headings, subheadings (if present), and content in a specific JSON format. Args: json_data: A dictionary ...
whysumedh's user avatar
0 votes
0 answers
80 views

Prerequisites: Assume that I've created a Google service account, and I've a Google document ID doc_ID. Problem: When I've only 2 types of elements (nested list and normal text), subsequent to the ...
Ait Paca's user avatar
2 votes
1 answer
230 views

My first post here. My apologies in advance if I inadvertently break any rules. Prerequisites: Assume that I've created a Google service account, and obtained the credentials (JSON) file. I created a ...
Ait Paca's user avatar
0 votes
0 answers
31 views

I am create the Google Document and Insert the Multiple Image but Can not Set the Positions how to fix it laravel using Google Docs API I am Expecting the add the InsertInlineImage Set Position that ...
Muthukumarsaravanan Muthupandi's user avatar
0 votes
0 answers
64 views

I'm currently working on a proof of concept (POC) where I need to retrieve only the first 5 pages of a document. Retrieving all pages would exceed Salesforce's heap size limit. While all content is ...
A.K.'s user avatar
  • 2,352
0 votes
1 answer
141 views

When I add the following... import {docs} from "@googleapis/docs"; "@googleapis/docs": "^3.0.2", I get the following Module not found: Error: Can't resolve 'buffer' in '/...
Jackie's user avatar
  • 24k
0 votes
0 answers
61 views

I am making an app which will extract text from an image and write that text in a new Google Document. I have downloaded and set up the 'credentials.json' file. But I am getting an error when the API ...
Avishkar Borkar's user avatar
0 votes
0 answers
65 views

I am trying to automate document creation using Google Apps Script by making copies of a template and replacing placeholders with actual data, including an image from Google Drive. However, the image ...
Aristoteles Petrakis's user avatar
0 votes
0 answers
37 views

I have a document on Google Docs, for example: https://docs.google.com/document/d/1U_Be02ViQp0UKPYNQo184ks4Vv-ey8mNoawJtTyC1R8 I want to rename a specific version of the document to some name like &...
Ben Nguyen's user avatar
0 votes
0 answers
44 views

I'm trying to convert several PDF files to Google Doc with OCR so that I can read the data in the files. The examples on stackoverflow use. Drive.Files.insert() But I keep getting an error. Here is ...
TheWizEd's user avatar
  • 8,654
1 vote
1 answer
130 views

from google.oauth2.service_account import Credentials from googleapiclient.discovery import build import random import msvcrt import json credentials_doc = 'service_account.json' ...
isil's user avatar
  • 31
1 vote
1 answer
62 views

function boldTextInLines() { var doc = DocumentApp.getActiveDocument(); var body = doc.getBody(); var text = body.getText(); var lines = text.split("\n"); for (var i = 0; i < ...
isil's user avatar
  • 31
0 votes
0 answers
329 views

I am adding data from a Google Forms form to a Google doc. Part of the form are a couple of images. I am successfully adding them to a Google doc and want to add a text label to describe the image. I ...
ppx's user avatar
  • 330
0 votes
1 answer
73 views

I am trying to create a copy of Google doc file and replace the text in it using the methods batchRequest, batchUpdate, replaceAllText As a library, I use the library tanaike batchRequests from ...
Antonio's user avatar
  • 99
0 votes
1 answer
566 views

I have a document with multiple tables. Content in the tables is being populated from data from a spreadsheet, with placeholder text being replaced with the text or image in the corresponding ...
GoldIngots's user avatar
0 votes
0 answers
141 views

Problem: I created a google site. I would like this site to have a running section and what is populated in this section are certain emails that I would like to upload there, either text or PDF. ...
Kinkikowboi's user avatar
0 votes
1 answer
59 views

I'm working on a Google Apps Script that generates a word file based on data from a Google Spreadsheet. The script creates a Google Doc, formats it, and inserts various pieces of information. However, ...
morep219's user avatar

1
2 3 4 5
32