How to Fill a Google Docs Template and Save It as a PDF Automatically
Copying a template, typing in the client's details and downloading a PDF takes a few minutes each time. If it happens every time a form comes in or a row is added, you can let Google Workspace Studio do it.
What you need
- A Google Workspace account with Workspace Studio (Google's flow builder).
- A Google Doc template with placeholders in double curly braces.
- Something that starts the flow: a Google Form, a Google Sheet, an email, or a schedule.
Set it up
- Make a Google Doc that looks like the finished document and type placeholders where values go:
{{client}},{{amount}},{{date}}.{{today}}is filled with today's date automatically. - Install DocFill (button below) and open Google Workspace Studio.
- Start a flow from the event you want, such as a form is submitted or a row is added to a sheet.
- Add the step Fill a Doc template and save as PDF. The first time, click Allow files and choose your template (DocFill only opens files you allow).
- Pick the template, type a file name, and map each placeholder to a value from the flow, one per line:
client = (form answer). - Optional: add Send an email with attachments and attach the PDF from the previous step.
- Turn the flow on.
Placeholders are filled everywhere in the document, including tables, headers and footers. The PDF is saved to your Google Drive; you can keep the filled Google Doc too.
Free: 25 runs a month. Fill a Docs template, save a PDF and email it with attachments, inside Google Workspace Studio.
Questions
Can Workspace Studio make a PDF from a template on its own?
No. Studio's built-in steps can't fill a Docs template or create a PDF. DocFill adds that step.
Does it need access to my whole Google Drive?
No. DocFill uses the narrowest Drive permission: it only opens the templates and attachments you allow, plus the files it creates.
How many documents can I make for free?
25 step runs a month on the free plan. Pro is unlimited.