Markdown to Google Docs icon

Markdown to Google Docs

Transform Markdown content into Google Docs API requests

Export Google Doc

AI-generated

Overview

This node operation exports a specified Google Docs document into a chosen file format such as Markdown, PDF, or plain text. It is useful for automating the extraction and conversion of Google Docs content for use in other applications or storage. For example, a user can export a Google Doc as a PDF to share with others or as Markdown to integrate with a documentation system.

Use Case Examples

  1. Export a Google Doc as a PDF file to share with a team.
  2. Convert a Google Doc into Markdown format for use in a static site generator.
  3. Save the exported document directly to a specified Google Drive folder for organized storage.

Properties

Name Meaning
Document The Google Docs document to export, selectable by list, URL, or ID.
Export Format The format to export the document to, such as Markdown, PDF, or plain text.
Output File Name Custom filename for the exported file; if empty, the document title is used.
Output Options Additional options for the export, including saving the exported file to a specific Google Drive folder.

Output

Binary

The exported document content in the chosen format, provided as binary data for file handling.

JSON

  • fileName - The name of the exported file.
  • mimeType - The MIME type of the exported file indicating its format.
  • outputMode - Indicates if the output is binary or JSON.
  • content - The content of the exported document, typically as a string if not binary.

Dependencies

  • Google Docs API access via OAuth2 credentials

Troubleshooting

  • Ensure the Document ID or URL is valid and accessible with the provided credentials.
  • Verify that the export format is supported and correctly specified.
  • If saving to Google Drive folder, confirm the folder ID or URL is valid and the user has write permissions.
  • Common error: 'Document ID is required' occurs if the document parameter is missing; provide a valid document identifier.

Discussion