Edit PDF and send via gmail

For start, I’m no developer so I reserve for wrong nomenclature🤣

Describe the problem/error/question

I have dynamic content in JSON format coming from an ai agent that I want to insert to a PDF temple and send away via gmail.

I have a template saved in google drive as PDF. I’m thinking about downloading the template via google drive node and then edit with the JSON dynamic content, how can I do this?

Please share your workflow

Information on n8n setup

  • n8n version: 1.74.1
  • Database (default: SQLite)
  • n8n EXECUTIONS_PROCESS setting default: own
  • Running n8n via Docker
  • Operating system: windows 10

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

1.74.1
Database (default: SQLite)
n8n EXECUTIONS_PROCESS setting default: own
Running n8n via Docker
Operating system: windows 10

Hey,

I think that the easier will be to use sth like apitemplate.io where you can set up your pdf template with some fields and after in n8n you can send those field and got link to generated PDF, I used it for images and worked really well

LMK if you would need help with this option:)
Simon

I have done similar process using StirlingPDF as a Docker-based service . It offers an HTTP-API which offers a function to “overlay PDFs”:
Basically you can use your PDF from GoogleDrive as template, create another PDF from your JSON (eg using the HTML-node to populate / format the -JSON-values) and finally merge the template with the generated PDF into a single document

1 Like