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?
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