The document service creates and opens Documents that can be edited.
// Open a document by ID. var doc = DocumentApp.openById('DOCUMENT_ID_GOES_HERE'); // Create and open a document. doc = DocumentApp.create('Document Name');
DO NOT USE
The document service creates and opens Documents that can be edited.