Mở rộng Google Trang trình bày bằng các tiện ích bổ sung
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Google Trang trình bày là một giải pháp trình bày dựa trên đám mây, có tính năng cộng tác theo thời gian thực và các công cụ mạnh mẽ giúp bạn nhanh chóng tạo các bộ trang trình bày tuỳ chỉnh.
Bạn có thể mở rộng Google Trang trình bày bằng các tiện ích bổ sung giúp người dùng tạo bản trình bày mới, thiết lập kết nối với các hệ thống của bên thứ ba và tích hợp dữ liệu Trang trình bày với các ứng dụng khác của Google Workspace (chẳng hạn như Google Trang tính).
Bạn có thể xem các tiện ích bổ sung cho Trang trình bày mà người khác đã tạo trên Google Workspace Marketplace.
Giải pháp
Dưới đây là một số việc bạn có thể làm với một tiện ích bổ sung mở rộng Google Trang trình bày:
Tiện ích bổ sung cho Trang trình bày được tạo bằng Apps Script. Để tìm hiểu thêm về cách truy cập và quản lý Google Trang trình bày bằng Apps Script, hãy xem phần Mở rộng Google Trang trình bày.
Cấu trúc bản trình bày
Một bản trình bày trên Google Trang trình bày bao gồm các trang, mỗi trang có một số phần tử như hộp văn bản và hình ảnh.
Dịch vụ Slides của Apps Script cung cấp một số lớp để biểu thị cấu trúc tổ chức trong Slides (chẳng hạn như Slide
và Shape
). Bạn có thể dùng các lớp này để đọc và sửa đổi dữ liệu cũng như hành vi của Slides.
Để tìm hiểu thêm về cách sắp xếp bản trình bày trên Trang trình bày, hãy xem phần Cấu trúc của bản trình bày.
Điều kiện kích hoạt
Trình kích hoạt Apps Script cho phép một dự án tập lệnh thực thi một hàm cụ thể khi đáp ứng một số điều kiện nhất định, chẳng hạn như khi một bản trình bày được mở hoặc khi một tiện ích bổ sung được cài đặt.
Hãy xem phần trình kích hoạt bổ sung để biết thêm thông tin về những trình kích hoạt có thể dùng với tiện ích bổ sung của Trang trình bày và những quy định hạn chế áp dụng cho việc sử dụng các trình kích hoạt này.
Tài liệu đọc thêm
Các hướng dẫn sau đây về Apps Script có thể hữu ích khi bạn phát triển tiện ích bổ sung cho Trang trình bày:
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-31 UTC."],[[["\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)"]]