Products App Maker Samples and Templates Sample: Document This sample shows you how to use scripts to create Google Docs. Open sample Features Used: Client scripting: calling a server method and clearing form widgets. Server scripting: using the Document Service to create and add text to a Google Doc. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated August 8, 2018.