# Generating PDFs in n8n Using Google Docs without paid APIs (for FREE)

**URL:** <https://community.n8n.io/t/generating-pdfs-in-n8n-using-google-docs-without-paid-apis-for-free/81267>\
**Category:** Tips & Tricks\
**Tags:** google-docs, google-drive\
**Created:** [February 24, 2025, 11:02am UTC](https://community.n8n.io/t/generating-pdfs-in-n8n-using-google-docs-without-paid-apis-for-free/81267 "2025-02-24T11:02:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamkir](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/iamkir/32/59785_2.png) [@iamkir](https://community.n8n.io/u/iamkir)\
**Post date:** [February 24, 2025, 11:02am UTC](https://community.n8n.io/t/generating-pdfs-in-n8n-using-google-docs-without-paid-apis-for-free/81267/1 "2025-02-24T11:02:00Z")

</div>

![generating-pdfs-in-n8n-using-google-docs-guide-fordevs.io](https://europe1.discourse-cdn.com/n8n/original/3X/b/9/b9268690027a33969d60a47a2663c69e93fc162a.png)

The process involves the following steps:

1. Create a document template in Google Docs.
2. Add a service account to the document (details below).
3. In your n8n workflow, copy this document into a new file.
4. Use the document modification node to replace placeholders (for example, `{client_name}` with the actual client’s name).
5. Convert the final document into a PDF and proceed with further workflow steps as needed.

This method lets you dynamically generate personalized PDFs based on a predefined template.

 ![n8n-generate-pdfs-free-fordevs.io](https://europe1.discourse-cdn.com/n8n/original/3X/e/7/e7bd7afe2eee960f5fddaabc0885f3468876ad75.jpeg)

The process involves the following steps:

1. **Create a Template in Google Docs**

- Set up a document with placeholders (e.g., `{client_name}`, `{invoice_number}`).

1. **Grant Access to a Service Account**

- Create a Google Cloud service account and share the document with its email. Docs about [google service accounts](https://docs.n8n.io/integrations/builtin/credentials/google/service-account/).

1. **Copy the Template in n8n (Google Drive Node)**

- Use the Google Drive node to duplicate the template and work with a fresh copy.

1. **Replace Placeholders with Actual Data (Google Docs Node)**

- The Google Docs node in n8n allows dynamic text replacement, personalizing the document. For example, you can find variable `{client_name}` inside your doc and replace it with `John Doe` text.

1. **Convert to PDF and Continue Processing (Google Drive Node)**

- Save the modified document as a PDF for further automation (e.g., emailing or storage) using Google Drive node.

**Full step-by-step instructions, along with a ready-to-import JSON workflow, are available in the article:**  
[Generate PDF files in n8n Using Google Docs (for FREE!)](https://fordevs.io/generating-pdfs-in-n8n-using-google-docs).

Feel free to ask any questions about this flow.

I use it to generate docs for my Telegram Bot users.
