使用外掛程式為 Google 簡報增添更多功能
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google 簡報是雲端簡報解決方案,提供即時協作功能和強大工具,讓您快速建構自訂簡報。
您可以透過外掛程式擴充 Google 簡報的功能,協助使用者製作新簡報、建立與第三方系統的連線,以及將簡報資料與其他 Google Workspace 應用程式 (例如 Google 試算表) 整合。
您可以在 Google Workspace Marketplace 中查看其他人開發的 Google 簡報外掛程式。
建議做法
以下列舉幾項可透過外掛程式擴充的 Google 簡報功能:
簡報外掛程式是使用 Apps Script 建構而成。如要進一步瞭解如何使用 Apps Script 存取及管理 Google 簡報,請參閱「擴充 Google 簡報」。
簡報結構
Google 簡報由多個頁面組成,每個頁面都包含文字方塊和圖片等元素。
Apps Script Google 簡報服務提供多個類別,代表 Google 簡報中的機構結構 (例如 Slide
和 Shape
)。您可以使用這些類別讀取及修改 Google 簡報資料和行為。
如要進一步瞭解簡報的結構,請參閱簡報結構。
觸發條件
Apps Script 觸發條件可讓指令碼專案在符合特定條件時執行指定函式,例如開啟簡報或安裝外掛程式時。
如要進一步瞭解哪些觸發條件可用於 Google 簡報外掛程式,以及使用時有哪些限制,請參閱外掛程式觸發條件。
延伸閱讀
開發 Google 簡報外掛程式時,下列 Apps Script 指南或許能派上用場:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-31 (世界標準時間)。
[null,null,["上次更新時間:2025-07-31 (世界標準時間)。"],[[["\u003cp\u003eGoogle Slides is a cloud-based presentation tool with real-time collaboration and robust features for creating custom presentations.\u003c/p\u003e\n"],["\u003cp\u003eSlides add-ons enhance Google Slides by allowing users to build presentations, connect to external systems, and integrate with other Google Workspace apps.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize Apps Script and the Slides service to programmatically read, edit, format, and visualize Google Slides presentations.\u003c/p\u003e\n"],["\u003cp\u003eApps Script triggers can automate tasks within Google Slides by executing specific functions when predefined events occur, like opening a presentation.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides comprehensive documentation and guides to support developers in building and extending Google Slides functionality with add-ons.\u003c/p\u003e\n"]]],["Google Slides add-ons, built with Apps Script, extend Slides' functionality. Key actions include reading, editing, visualizing, and formatting slides using Apps Script's Slides service or the Google Slides API. Developers can create custom menus, dialogs, and sidebars with HTML and CSS, and set up triggers for specific events. Add-ons interact with presentation elements like slides and shapes, modifying data and behavior, with the option to install from the Google Workspace Marketplace.\n"],null,["# Extending Google Slides with add-ons\n\n[Google Slides](https://workspace.google.com/products/slides/) is a cloud-based\npresentation solution with real-time collaboration and powerful\ntools that let you quickly build custom slide decks.\n\nYou can extend Google Slides with add-ons that help users construct\nnew presentations, establish connectivity to third-party systems, and integrate\nyour Slides data with other Google Workspace\napplications (like Google Sheets).\n\nYou can see the Slides add-ons others have built on the\n[Google Workspace Marketplace](https://workspace.google.com/marketplace/category/works-with-slides).\n\nWhat you can do\n---------------\n\nHere are a few things you can do with an add-on that extends Google Slides:\n\n- You can read, edit, visualize, and format slides in Google Slides presentations using the built-in Apps Script [Slides service](/apps-script/reference/slides).\n- You can use the Apps Script [advanced Slides service](/apps-script/advanced/slides) to access the [Google Slides API](/workspace/slides/how-tos/overview) directly.\n- You can create [custom menus](/workspace/add-ons/concepts/menus) and define multiple [custom dialogs and sidebars](/workspace/add-ons/concepts/dialogs) interfaces using standard HTML and CSS.\n- You can create add-ons [triggers](#triggers) that run specified functions when certain triggering events occur.\n\nSlides add-ons are built using Apps Script. To learn more about how to access\nand manage Google Slides with Apps Script, see\n[Extending Google Slides](/apps-script/guides/slides).\n\nPresentation structure\n----------------------\n\nA Google Slides presentation consists of pages, each of which as some number\nof elements such as text boxes and images.\n\nThe Apps Script [Slides service](/apps-script/reference/slides)\nprovides several classes to represent organizational structures in Slides\n(such as [`Slide`](/apps-script/reference/slides/slide) and\n[`Shape`](/apps-script/reference/slides/shape)). You can use these classes to\nread and modify Slides data and behavior.\n\nTo learn more about how Slides presentations are organized, see\n[Structure of a presentation](/apps-script/guides/slides/presentations).\n\nTriggers\n--------\n\nApps Script [triggers](/workspace/add-ons/concepts/editor-triggers) let a script project\nexecute a specified function when certain conditions are met, such as when\na presentation is opened or when an add-on is installed.\n\nSee [add-on triggers](/workspace/add-ons/concepts/editor-triggers) for more information\non what triggers can be used with Slides add-ons and what restrictions apply\nto their use.\n\nFurther reading\n---------------\n\nThe following Apps Script guides may be helpful when developing Slides add-ons:\n\n- [Extending Google Slides](/apps-script/guides/slides)\n- [Structure of a presentation](/apps-script/guides/slides/presentations)\n- [Sizing and positioning page elements](/apps-script/guides/slides/moving-elements)\n- [Selecting items in a presentation](/apps-script/guides/slides/selecting)\n- [Editing and styling text](/apps-script/guides/slides/editing-styling)\n- [Lifecycle of an update](/apps-script/guides/slides/lifecycle)"]]