Skip to main content

PDF Export

Exports a Google Docs document as a PDF file.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Document Id - The ID of the Google Docs document to export as PDF.
  • File Path - The local file path where the PDF should be saved.

Options

  • Credentials - Google Docs credentials used to authenticate with the service.

How It Works

The PDF Export node integrates with Google Docs to export a document as a PDF file. When executed, the node:

  1. Validates the provided inputs (Document Id, File Path)
  2. Authenticates with Google Docs using the provided credentials
  3. Exports the specified Google Docs document as a PDF
  4. Saves the PDF file to the specified local file path

Requirements

  • Valid Google Docs credentials
  • A valid Google Docs document ID
  • A valid local file path for saving the PDF
  • Valid Google Docs permissions to access the document
  • Write permissions to the specified local file path

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Document Id
  • Empty or invalid File Path
  • Empty or invalid Google Docs credentials
  • Google Docs service errors
  • Insufficient permissions to access the document
  • Unable to write to the specified file path

Usage Notes

  • The Document Id can be found in the URL of the Google Docs document
  • The File Path should be a valid local path where the PDF will be saved
  • If a file already exists at the specified path, it will be overwritten
  • The node requires appropriate permissions to access the specified document
  • The exported PDF will maintain the formatting of the original Google Docs document
  • This node is useful for creating PDF versions of Google Docs documents for sharing or archiving