tanaike

The Thinker

Checking API Enabled with Advanced Google Services using Google Apps Script

Gists Overview This script checks if the desired API is enabled or disabled in the Advanced Google Services section of Google Apps Script. Introduction As of December 11, 2023, Drive API v3 became available for use in Advanced Google Services. Ref This means you can now choose between v2 and v3 in your scripts. However, when Drive API is enabled, version 3 is automatically selected. This caused compatibility issues with previously published libraries that relied on v2.

Updated: GAS Library - PDFApp

PDFApp was updated to v1.0.7. v1.0.7 (May 15, 2024) The method of “addPageNumbers” was updated. Ref When a number is used to the property x instead of “left”, “center”, and “right”, the inputted number is directly used. You can see the detail information here https://github.com/tanaikech/PDFApp

Adding Page Numbers to PDF using Google Apps Script

Gists Description This is a simple sample script for adding the page numbers to PDF data using Google Apps Script. When you use this script, please copy and paste the following script to the script editor of Google Apps Script. And, please set the file ID of the PDF file. Sample script In this script, pdf-lib is used. /** * ### Description * Add page numbers to PDF. * * @param {Object} blob PDF blob.

Leveraging Gemini 1.5 API for Automated Test Case Generation in Google Apps Script Reverse Engineering

Gists Abstract This report examines leveraging Gemini 1.5 API with Google Apps Script to automate sample input creation during script reverse engineering. Traditionally, this process is manual and time-consuming, especially for functions with numerous test cases. Gemini 1.5 API’s potential to streamline development by automating input generation is explored through applying reverse engineering techniques to Google Apps Script samples. Introduction With the release of Gemini 1.5 API, users gained the ability to process more complex data, opening doors for various application developments.