부가기능으로 Google Docs 확장
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Google Docs는 실시간 공동작업을 지원하고 문서를 작성, 수정, 공유하는 강력한 도구를 제공하는 클라우드 기반 문서 솔루션입니다.
맞춤 워크플로 개선사항을 빌드하고, 서드 파티 시스템에 연결하고, 문서를 다른 Google Workspace 애플리케이션 (예: Google Slides)과 통합하는 부가기능으로 Docs를 확장할 수 있습니다.
다른 사용자가 Google Workspace Marketplace에서 만든 Docs 부가기능을 확인할 수 있습니다.
취할 수 있는 조치
Google Docs를 확장하는 부가기능으로 할 수 있는 몇 가지 작업은 다음과 같습니다.
- 내장된 Apps Script 문서 서비스를 사용하여 Google Docs에서 텍스트를 읽고, 수정하고, 시각화하고, 서식을 지정할 수 있습니다. 또한 이 서비스를 사용하면 Google 문서에 표시되는 표, 이미지, 그림, 수식을 만들고 수정할 수 있습니다.
- 표준 HTML 및 CSS를 사용하여 맞춤 메뉴를 만들고 여러 맞춤 대화상자 및 사이드바 인터페이스를 정의할 수 있습니다.
- 부가기능 트리거를 사용하여 특정 트리거 이벤트가 발생할 때 지정된 함수를 실행할 수 있습니다.
문서 부가기능은 Apps Script를 사용하여 빌드됩니다. Apps Script로 Google Docs에 액세스하고 관리하는 방법을 자세히 알아보려면 Google Docs 확장을 참고하세요.
문서 구조
Google Docs에서 만든 문서에는 텍스트, 이미지, 표, 기타 요소가 표시되는 위치와 방식을 정의하는 내부 트리 구조(HTML 또는 JSON과 유사)가 있습니다. Apps Script 문서 서비스는 다양한 요소 유형을 관리하는 데 도움이 되는 여러 클래스 (예: Paragraph
또는 Table
)를 정의합니다.
이러한 요소 클래스와 배열을 관리하는 규칙에 관해 알아보려면 문서 구조를 참고하세요.
트리거
Apps Script 트리거를 사용하면 문서를 열거나 부가기능을 설치할 때와 같이 특정 조건이 충족될 때 스크립트 프로젝트에서 지정된 함수를 실행할 수 있습니다.
Docs 부가기능과 함께 사용할 수 있는 트리거와 사용에 적용되는 제한사항에 대한 자세한 내용은 부가기능 트리거를 참고하세요.
시작하기
코드를 살펴볼 준비가 되면 Google 번역이 포함된 Docs 부가기능 빠른 시작을 비롯한 부가기능 샘플을 확인하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-31(UTC)
[null,null,["최종 업데이트: 2025-07-31(UTC)"],[[["\u003cp\u003eGoogle Docs is a cloud-based document solution enabling real-time collaboration and offering robust tools for composing, editing, and sharing documents.\u003c/p\u003e\n"],["\u003cp\u003eDocs add-ons, built using Apps Script, extend functionality by enabling workflow customization, integration with third-party systems, and connectivity with other Google Workspace applications.\u003c/p\u003e\n"],["\u003cp\u003eAdd-ons can manipulate document content, create custom interfaces, and automate tasks through triggers based on specific events.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides comprehensive documentation and resources, including code samples, to guide developers in building Docs add-ons.\u003c/p\u003e\n"]]],["Google Docs is a cloud-based document solution that can be extended with add-ons via Apps Script. These add-ons can read, edit, visualize, and format text, create custom menus and dialogs, and integrate with other Google Workspace applications. Add-ons utilize Apps Script triggers to run functions when specific events occur. The documents' tree-like structure is managed through the Apps Script Document service. Resources are available, including add-on samples and a quickstart guide, to help begin developing.\n"],null,["# Extending Google Docs with add-ons\n\n[Google Docs](https://workspace.google.com/products/docs/) is a cloud-based document\nsolution with real-time collaboration and powerful tools to compose, edit,\nand share documents.\n\nYou can extend Docs with add-ons that build customized workflow improvements,\nestablish connectivity to third-party systems, and integrate your documents\nwith other Google Workspace applications (like\nGoogle Slides).\n\nYou can see the Docs add-on others have built on the\n[Google Workspace Marketplace](https://workspace.google.com/marketplace/category/works-with-doc).\n\nWhat you can do\n---------------\n\nHere are a few things you can do with an add-on that extends Google Docs:\n\n- You can read, edit, visualize, and format text in Google Docs using the built-in Apps Script [Document service](/apps-script/reference/document). The service also lets you create and modify tables, images, drawings, and equations appearing in Google Docs.\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 use add-on [triggers](#triggers) to run specified functions when certain triggering events occur.\n\nDocs add-ons are built using Apps Script. To learn more about how to access\nand manage Google Docs with Apps Script, see\n[Extending Google Docs](/apps-script/guides/docs).\n\nDocument structure\n------------------\n\nThe documents created in Google Docs have internal, tree-like structures\n(similar to HTML or JSON) that define where and how text, images, tables, and\nother elements appear. The Apps Script\n[Document service](/apps-script/reference/document) defines several\nclasses (such as [`Paragraph`](/apps-script/reference/document/paragraph)\nor [`Table`](/apps-script/reference/document/table)) to help manage the\ndifferent element types.\n\nSee [Structure of a document](/apps-script/guides/docs#structure_of_a_document)\nto learn about these element classes and the rules that govern their\narrangement.\n\nTriggers\n--------\n\nApps Script **triggers** let a script project execute a specified function\nwhen certain conditions are met, such as when a document is opened or when an\nadd-on is installed.\n\nSee [add-on triggers](/workspace/add-ons/concepts/editor-triggers) for more information\non what triggers can be used with Docs add-ons and what restrictions apply to\ntheir use.\n\nGetting started\n---------------\n\nWhen you're ready to take a look at some code, check out our\n[add-on samples](/workspace/add-ons/samples), including the\n[Docs add-on Quickstart](/workspace/add-ons/editors/docs/quickstart/translate)\nfeaturing Google Translate."]]