<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Google Document on tanaike - Google Apps Script, Gemini API, and Developer Tips</title>
    <link>https://tanaikech.github.io/tags/google-document/</link>
    <description>Recent content in Google Document on tanaike - Google Apps Script, Gemini API, and Developer Tips</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <copyright>&amp;copy; 2026. All rights reserved.</copyright>
    <lastBuildDate>Mon, 14 Sep 2020 10:57:55 +0900</lastBuildDate>
    <atom:link href="https://tanaikech.github.io/tags/google-document/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Retrieving All URLs in Google Document using Google Apps Script</title>
      <link>https://tanaikech.github.io/2020/09/14/retrieving-all-urls-in-google-document-using-google-apps-script/</link>
      <pubDate>Mon, 14 Sep 2020 10:57:55 +0900</pubDate>
      <guid>https://tanaikech.github.io/2020/09/14/retrieving-all-urls-in-google-document-using-google-apps-script/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://gist.github.com/tanaikech/d3ce0c2186885ee27d23e02ddd2696b7&#34;&gt;Gists&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is a sample script for retrieving All URLs in Google Document using Google Apps Script. In this sample script, the method of &amp;ldquo;documents.get&amp;rdquo; in Google Docs API is used. By this, the URL can be retrieve using &lt;code&gt;JSON.parse()&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;sample-script&#34;&gt;Sample script&lt;/h2&gt;&#xA;&lt;p&gt;Before you use this script, &lt;a href=&#34;https://developers.google.com/apps-script/guides/services/advanced#enabling_advanced_services&#34;&gt;please enable Google Docs API at Advanced Google Services&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-javascript&#34; data-lang=&#34;javascript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;documentId&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;###&amp;#34;&lt;/span&gt;; &lt;span style=&#34;color:#75715e&#34;&gt;// Please set the Google Document ID.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;content&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Docs&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;Documents&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;get&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;documentId&lt;/span&gt;).&lt;span style=&#34;color:#a6e22e&#34;&gt;body&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;content&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;urls&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;JSON&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;parse&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;JSON&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;stringify&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;content&lt;/span&gt;), (&lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;v&lt;/span&gt;) =&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;url&amp;#34;&lt;/span&gt;) &lt;span style=&#34;color:#a6e22e&#34;&gt;urls&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;push&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;v&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;});&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;console&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;log&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;urls&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;references&#34;&gt;References&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://developers.google.com/apps-script/guides/services/advanced&#34;&gt;Advanced Google Services&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://developers.google.com/docs/api/reference/rest/v1/documents/get&#34;&gt;Method: documents.get&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Modifying 1st-Page Header in Google Document using Google Apps Script</title>
      <link>https://tanaikech.github.io/2020/08/19/modifying-1st-page-header-in-google-document-using-google-apps-script/</link>
      <pubDate>Wed, 19 Aug 2020 13:42:35 +0900</pubDate>
      <guid>https://tanaikech.github.io/2020/08/19/modifying-1st-page-header-in-google-document-using-google-apps-script/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://gist.github.com/tanaikech/d430543089cc687e5d9c2bc96d3178ff&#34;&gt;Gists&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;These are sample scripts for modifying the 1st-page header in Google Document using Google Apps Script. Unfortunately, in the current stage, the 1st-page header cannot be modified by Document service. In this case, it is required to use Google Docs API. Here, I would like to introduce 2 sample scripts for modifying the 1st page header using Docs API.&lt;/p&gt;&#xA;&lt;p&gt;When you use this, &lt;a href=&#34;https://developers.google.com/apps-script/guides/services/advanced#enabling_advanced_services&#34;&gt;please enable Google Docs API at Advanced Google services&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Libraries of gdoctableapp for golang, Node.js and python were updated to v110</title>
      <link>https://tanaikech.github.io/2020/01/22/libraries-of-gdoctableapp-for-golang-node.js-and-python-were-updated-to-v110/</link>
      <pubDate>Wed, 22 Jan 2020 15:22:54 +0900</pubDate>
      <guid>https://tanaikech.github.io/2020/01/22/libraries-of-gdoctableapp-for-golang-node.js-and-python-were-updated-to-v110/</guid>
      <description>&lt;h2 id=&#34;libraries-of-gdoctableapp-for-golang-nodejs-and-python-were-updated-to-v110&#34;&gt;Libraries of gdoctableapp for golang, Node.js and python were updated to v1.1.0&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/tanaikech/go-gdoctableapp&#34;&gt;go-gdoctableapp&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;v1.1.0 (January 22, 2020)&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/tanaikech/go-gdoctableapp#replacetexts&#34;&gt;2 new methods were added.&lt;/a&gt; From this version, the texts can be replaced by images. The direct link and local file can be used as the image.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/tanaikech/node-gdoctableapp&#34;&gt;node-gdoctableapp&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;v1.1.0 (January 22, 2020)&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/tanaikech/node-gdoctableapp#replacetexts&#34;&gt;New method was added.&lt;/a&gt; From this version, the texts can be replaced by images. The direct link and local file can be used as the image.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/tanaikech/gdoctableapppy&#34;&gt;gdoctableapppy&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Libraries of gdoctableapp for golang, Node.js and python were updated to v105</title>
      <link>https://tanaikech.github.io/2020/01/21/libraries-of-gdoctableapp-for-golang-node.js-and-python-were-updated-to-v105/</link>
      <pubDate>Tue, 21 Jan 2020 15:00:02 +0900</pubDate>
      <guid>https://tanaikech.github.io/2020/01/21/libraries-of-gdoctableapp-for-golang-node.js-and-python-were-updated-to-v105/</guid>
      <description>&lt;h2 id=&#34;libraries-of-gdoctableapp-for-golang-nodejs-and-python-were-updated-to-v105&#34;&gt;Libraries of gdoctableapp for golang, Node.js and python were updated to v1.0.5&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/tanaikech/go-gdoctableapp&#34;&gt;go-gdoctableapp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/tanaikech/node-gdoctableapp&#34;&gt;node-gdoctableapp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/tanaikech/gdoctableapppy&#34;&gt;gdoctableapppy&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;update-history&#34;&gt;Update History&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;v1.0.5 (January 21, 2020)&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;When the inline objects and tables are put in the table. An error occurred. This bug was removed by this update.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;I got the pull request at &lt;a href=&#34;https://github.com/tanaikech/gdoctableapppy/pull/3&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>python library - gdoctableapppy</title>
      <link>https://tanaikech.github.io/2019/07/18/python-library-gdoctableapppy/</link>
      <pubDate>Thu, 18 Jul 2019 11:46:31 +0900</pubDate>
      <guid>https://tanaikech.github.io/2019/07/18/python-library-gdoctableapppy/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This is a python library to manage the tables on Google Document using Google Docs API.&lt;/p&gt;&#xA;&lt;h2 id=&#34;description&#34;&gt;Description&lt;/h2&gt;&#xA;&lt;p&gt;Google Docs API has been released. When I used this API, I found that it is very difficult for me to manage the tables on Google Document using Google Docs API. Although I checked &lt;a href=&#34;https://developers.google.com/docs/api/how-tos/tables&#34;&gt;the official document&lt;/a&gt;, unfortunately, I thought that it&amp;rsquo;s very difficult for me. So in order to easily manage the tables on Google Document, I created this library.&lt;/p&gt;</description>
    </item>
    <item>
      <title>node module - node-gdoctableapp</title>
      <link>https://tanaikech.github.io/2019/07/18/node-module-node-gdoctableapp/</link>
      <pubDate>Thu, 18 Jul 2019 11:44:08 +0900</pubDate>
      <guid>https://tanaikech.github.io/2019/07/18/node-module-node-gdoctableapp/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This is a Node.js module to manage the tables on Google Document using Google Docs API.&lt;/p&gt;&#xA;&lt;h2 id=&#34;description&#34;&gt;Description&lt;/h2&gt;&#xA;&lt;p&gt;Google Docs API has been released. When I used this API, I found that it is very difficult for me to manage the tables on Google Document using Google Docs API. Although I checked &lt;a href=&#34;https://developers.google.com/docs/api/how-tos/tables&#34;&gt;the official document&lt;/a&gt;, unfortunately, I thought that it&amp;rsquo;s very difficult for me. So in order to easily manage the tables on Google Document, I created this library.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Go Library - go-gdoctableapp</title>
      <link>https://tanaikech.github.io/2019/07/18/go-library-go-gdoctableapp/</link>
      <pubDate>Thu, 18 Jul 2019 11:40:54 +0900</pubDate>
      <guid>https://tanaikech.github.io/2019/07/18/go-library-go-gdoctableapp/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This is a Golang library for managing tables on Google Document using Google Docs API.&lt;/p&gt;&#xA;&lt;h2 id=&#34;description&#34;&gt;Description&lt;/h2&gt;&#xA;&lt;p&gt;Google Docs API has been released. When I used this API, I found that it is very difficult for me to manage the tables on Google Document using Google Docs API. Although I checked &lt;a href=&#34;https://developers.google.com/docs/api/how-tos/tables&#34;&gt;the official document&lt;/a&gt;, unfortunately, I thought that it&amp;rsquo;s very difficult for me. So in order to easily manage the tables on Google Document, I created this library.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
