M
M
Mirtopir2021-07-15 14:40:56
Google Apps Script
Mirtopir, 2021-07-15 14:40:56

How to set an indent for a table inserted through a script in google doc?

Insert table:

let docFile = DocumentApp.openById(docId);
let body = docFile.getBody();
let docTable = body.appendTable(table);

The table is large, I want to move it a little to the left - set the indent.
For paragraphs, there are: setIndentFirstLine() and setIndentStart().
This does not work here (How can I move it to the left on the page?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question