Google Docs is a cloud-based documentsolution with real-time collaboration and powerful tools to compose, edit,and share documents.
You can extend Docs with add-ons that build customized workflow improvements,establish connectivity to third-party systems, and integrate your documentswith other Google Workspace applications (likeGoogle Slides).
Google has made some recent changes to the header feature in Docs. If you just want a header on the first page of your document, remove all headers to get started. Now put your cursor in the header on the first page and check the box for 'different first page.'
You can see the Docs add-ons others have built in theDocs add-on store.
Here are a few things you can do with an add-on that extends Google Docs:
Docs add-ons are built using Apps Script. To learn more about how to accessand manage Google Docs with Apps Script, seeExtending Google Docs.
The documents created in Google Docs have internal, tree-like structures(similar to HTML or JSON) that define where and how text, images, tables, andother elements appear. The Apps ScriptDocument service defines severalclasses (such as Paragraph
or Table
) to help manage thedifferent element types.
See Structure of a documentto learn about these element classes and the rules that govern theirarrangement.
Apps Script triggers let a script project execute a specified functionwhen certain conditions are met, such as when a document is opened or when anadd-on is installed.
See Add-on triggers for more informationon what triggers can be used with Docs add-ons and what restrictions apply totheir use.
When you're ready to take a look at some code, check out ouradd-on samples, including theDocs Add-on Quickstartfeaturing Google Translate.