Share
Explore

icon picker
Export to Google Docs Pack User Guide

Learn how to use install and use the Pack.

Install the Pack

To install the Pack, type /Export to Google Docs in any doc, or click the Install button below and then click the Add to Doc button.

What’s included

The Pack includes actions, which you can use in buttons and automations, to export Coda pages and canvas content to Google Docs.
blockly-blue

Building Blocks

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
Some notable caveats:
You can’t export an entire doc to Google Docs, only individual pages.
You can’t directly export to Google Docs, you need to create a button (or automation) to do the export.
The export doesn’t have perfect fidelity, and you should check the exported doc to make sure that content wasn’t lost.
In order to export to a filter, visit , select the folder, and then copy the ID into the folder parameter of the button.
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.