Apps Scriptリファレンス: Apps Script Reference |障害・課題追跡: IssueTracker |Google Workspace: Status Dashboard - Summary

2019年1月19日土曜日

Googleドキュメント全体のフォントサイズを変更したい


ドキュメント全体のフォントサイズを14に変更してみる

これで実現できました。

 DocumentApp.openByUrl(ドキュメントのURL)
  .editAsText()
  .setFontSize(14);



コード.gs
function changeFontSize() {
  var url = "https://docs.google.com/document/d/ID/edit";
  var doc = DocumentApp.openByUrl(url);
  doc.editAsText().setFontSize(14); 
}


参考

editAsText()
https://developers.google.com/apps-script/reference/document/text#editAsText()

Latest post

Google Formsでクイズを作りたい

Googleフォームには回答を判定するクイズモードがあります 今回はそのクイズモードで回答の判定とフィードバックについて書いていきます 「クイズモード」の表記: 日本語の表記は「テストにする」ですが 英語の表記は「Make this a quiz」となっています この記事ではでは...