ExportToDoc(name, content, permissions?, folder?) - Creates a new Google Doc using the content from a Coda page or canvas.
name - The name of the resulting Google Doc file. content - The page or canvas content to export. Open the formula editor with the equals key to select the page or canvas. permissions - Who should the exported doc be shared with. Pass in a List() of permissions, each created with the CreatePermission() formula. folder - The ID of the folder where the exported doc should be created. It must first be selected at . ReplaceContent(doc, content) - Replaces the content of a Google Doc that was previously created by this Pack.
doc - The URL or ID of a Google Doc created by this Pack. content - The page or canvas content to export. Open the formula editor with the equals key to select the page or canvas. AppendText(doc, text) - Appends plain text to a Google Doc that was previously created by this Pack.
doc - The URL or ID of a Google Doc created by this Pack. text - The text to append. Only plain text is supported, any styling will be lost. AppendImage(doc, image, width?, height?) - Appends an image to a Google Doc that was previously created by this Pack.
doc - The URL or ID of a Google Doc created by this Pack. image - The URL of the image. It must be publicly accessible. width - The max width of the inserted image, in points (1/72 of an inch). height - The max height of the inserted image, in points (1/72 of an inch). ConvertToDoc(name, file, permissions?, folder?) - Converts a file (PDF, Word Doc, image, etc) to a Google Doc.
name - The name of the resulting Google Doc file. file - The file to convert. permissions - Who should the exported doc be shared with. Pass in a List() of permissions, each created with the CreatePermission() formula. folder - The ID of the folder where the exported doc should be created. It must first be selected at . CreatePermission(type, who, role, sendNotificationEmail?) - Creates a permission value to be used with the permissions parameter of the ExportDoc() formula.
type - The type of entity to share with. One of: user, group, domain, anyone who - Who to share with. For users and groups this should be their email address, for domains it should be the domain name, and for anyone leave it blank. role - What role they should have in the document. One of: writer, commenter, reader sendNotificationEmail - Whether or not Google Drive should send a notification email about the shared doc. Default: false