Gists
Description This is a Google Apps Script for creating the tree structure from headings in Google Documents.
Usage In order to test this script, please do the following steps.
1. Sample Document Create a sample Document as follows.
2. Sample script Open the script editor and copy and paste the following script.
In this script, Document service (DocumentApp) is used.
function sample1() { const headTypes = [ "TITLE", "HEADING1", "HEADING2", "HEADING3", "HEADING4", "HEADING5", "HEADING6", ]; const body = DocumentApp.
Gists
Description This report introduces a sample script for changing the glyph colors of bullets in lists on Google Documents using Google Apps Script. Currently, there are no built-in methods for achieving this using either the Document service (DocumentApp) or the Docs API. However, this can be accomplished through a specific process. This report will introduce that process using Google Apps Script.
Principle When the foreground color of the text within a list is changed using the Google Document service (DocumentApp), the bullet glyphs are not affected.
Gists
Published: March 9, 2025
Kanshi Tanaike
Introduction On Stack Overflow, numerous users post questions and answers daily across various tags. These discussions, spanning a wide range of topics, provide valuable information and are highly beneficial. One such tag is “google-apps-script,” where I occasionally participate in discussions. Observing these threads over time, it’s evident that they evolve alongside updates to Google Apps Script, the technology at the core of the tag.
URL: https://stackoverflow.com/users/7108653/tanaike?tab=answers&sort=newest
This is the statistics of my activities from 2024-01-01 - 2024-12-31 on Stackoverflow.
Answers to stackoverflow
I answered 380 answers. On March 02, 2025, the total view count is 182,695. Answers to ja.stackoverflow
I answered 2 answers. On March 02, 2025, the total view count is 3,409. Total view counts: 186,104
Gists
Abstract This report outlines a Google Apps Script solution for directly exporting web-published Google Docs to PDF. By circumventing limitations in published URLs, the script enables convenient PDF generation without manual intervention.
Introduction Google Sheets and Google Docs offer the convenient feature of web publishing, providing readily accessible URLs for sharing. Ref
Google Sheets: https://docs.google.com/spreadsheets/d/e/2PACX-###/pubhtml Google Docs: https://docs.google.com/document/d/e/2PACX-###/pub These URLs utilize a unique ID (###) for each document.