# Can't create PDF Template to send to workflow

**URL:** <https://community.n8n.io/t/cant-create-pdf-template-to-send-to-workflow/299585>\
**Category:** Help me Build my Workflow\
**Created:** [June 16, 2026, 5:42am UTC](https://community.n8n.io/t/cant-create-pdf-template-to-send-to-workflow/299585 "2026-06-16T05:42:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kjooleng](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/kjooleng/32/184045_2.png) [@kjooleng](https://community.n8n.io/u/kjooleng)\
**Post date:** [June 16, 2026, 6:24am UTC](https://community.n8n.io/t/cant-create-pdf-template-to-send-to-workflow/299585/2 "2026-06-16T06:24:53Z")

</div>

Hi @Tim_Barrett

The reason your PDF is coming up blank is that you are mixing two different PDF generation methods in your workflow. You are trying to use a **Template-based approach** (via the PDF Generator API), but you are feeding it a **Binary File** (via the Convert to File node) and providing **invalid JSON data**.

Here are the three specific issues and how to fix them:

1 - The `Convert to File` node takes your text and turns it into a binary HTML file. However, the **PDF Generator API** node does not “convert” an existing file into a template; it _creates_ a new file by merging JSON data into a pre-defined template.

By placing `Convert to File` before the PDF generator, you are changing the input from a JSON object (which the API needs) into a binary object, which causes the API to fail to find the data it needs to fill the template.

**Fix:** Delete the `Convert to File` node and connect `Edit Fields1` directly to `Generate a PDF document`.

2 - In your `Generate a PDF document` node, you have the data set as: `={} {{ $json.output }}`

This is not valid JSON. The PDF Generator API requires a JSON object where the **keys** match the **placeholders** you created in your PDF Generator API dashboard template.

**Fix:** Change the `data` field to a proper JSON object. For example, if your template has a placeholder called `{{quote_content}}`, your data field should look like this:

```auto
{
  "quote_content": "{{ $json.output }}"
}

```

3 - For the data to actually appear on the PDF, the key you use in n8n must exactly match the variable name in your template (ID: 1649628).

- **If your template is blank:** It means the API received the request, but couldn’t find any keys in your JSON that matched the `{{variable}}` tags in your design.
- **Recommendation:** Check your template in the PDF Generator API dashboard. If you have tags like `{{client_name}}` or `{{total_price}}`, you must provide those specifically in the JSON:

```auto
{
  "client_name": "{{ $("Edit Fields").item.json["What’s your name?"] }}",
  "quote_content": "{{ $json.output }}"
}

```

Try out this

**Important Note:** In the `data` field of the PDF node, I used the key `"quote_content"`. For this to work, you must ensure that inside your PDF Generator API template (ID: 1649628), you have a text element with the variable **`{{quote_content}}`**. If your template uses a different variable name, simply change `"quote_content"` in the JSON below to match your template.

---

_[View the full topic](https://community.n8n.io/t/cant-create-pdf-template-to-send-to-workflow/299585)._
