Export as PDF

google_docs.export_pdf
ActionFiles & storageconnection required

Calls Drive files.export, capped by MANTLE_BINARY_MAX_BYTES. Reaches documents this workflow created — the connection has per-file Drive access, not access to the whole account.

Export a Google Doc to PDF (or DOCX, RTF, TXT…) as a file blob.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Docs
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
token_uri
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
document_id
Id of the document (the long segment in its /document/d/<id>/edit URL).
stringYes———
mime_type
Export format. Defaults to PDF.
stringNoapplication/pdfone of "application/pdf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/rtf", "application/vnd.oasis.opendocument.text", "text/plain", "text/html", "application/epub+zip", "application/zip"—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "mime_type": "application/pdf"
}

Output

One shape.

result

FieldTypeExample
ok
booleantrue
document_id
string—
export_mime_type
What the document was rendered as.
string—
file_content
The file, base64-encoded.
string—
content_encoding
stringbase64
filename
stringapp-main.zip
content_type
stringapplication/zip
size
Raw size in bytes (before base64).
number—
{
  "content_encoding": "base64",
  "content_type": "application/zip",
  "document_id": "",
  "export_mime_type": "",
  "file_content": "",
  "filename": "app-main.zip",
  "ok": true,
  "size": 0
}

See Export as PDF run in a workflow.

In a technical demo we add the Google Docs connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.