How to Fill PDF Forms Automatically from Google Sheets and Google Forms
The Fill PDF Forms task in Document Studio takes a fillable PDF from Google Drive and fills it in once for every row in your sheet, or for every new Google Forms response. Use it when the form already exists and you have to use it as it is: a tax form, an insurance claim, a school admission form or your HR department’s onboarding packet.
If you’re designing the document yourself, start from a Google Docs template instead. See Create Documents.
What You’ll Build
Section titled “What You’ll Build”Northwind Logistics hires a few people every week. Each new hire fills in a short Google Form, and HR used to copy the answers into the company’s Employee Information Form PDF by hand. With Document Studio, every response turns into a filled PDF with the answers, a ticked checkbox, the person’s photo and their signature. HR gets the PDF in an email.
This is what Document Studio produces for Daniel Okafor, the first response:

To follow along, download the blank form and upload it to your Google Drive.
Before You Start
Section titled “Before You Start”You need:
- A fillable PDF in Google Drive. A fillable PDF has boxes you can click and type into. Open the PDF in Chrome or Adobe Acrobat Reader and click a blank line. If a text cursor appears in a box, the form is fillable.
- A Google Sheet with your data, or a Google Form linked to a sheet. Document Studio reads the answers from the sheet.
- Document Studio installed in Google Sheets.
Match Your Columns to the PDF
Section titled “Match Your Columns to the PDF”Each answer in your sheet goes into one field of the PDF. For the Northwind form, the Google Form questions match the PDF fields like this:
| Google Form question (sheet column) | Daniel’s answer | PDF field | Field type |
|---|---|---|---|
| Full Name | Daniel Okafor | Full Name |
Text |
| Job Title | Warehouse Supervisor | Job Title |
Text |
| Department | Warehouse | Department |
Dropdown |
| Start Date | January 12, 2027 | Start Date |
Text |
| Employment Type | Full-time | Employment Type |
Choice |
| I have read the Code of Conduct | Yes | Code of Conduct |
Checkbox |
| Photo | Drive link to the uploaded file | Image, top right | Image |
| Signature | Drive link to the uploaded file | Image, on the signature line | Image |
The column titles don’t have to match the PDF field names. You pick a column for each field in the task.
Create the Workflow
Section titled “Create the Workflow”-
Open the Google Sheet that holds the form responses. Open the Extensions menu and choose Document Studio > Open.
-
Click Create Workflow. Type a Name, such as
New hire forms, choose the sheet with the responses under Source Worksheet, and click Continue. -
On the Conditions screen, click Continue to fill a PDF for every response. To fill it only for some rows, such as one department, add a condition first.
-
On the Tasks screen, choose Fill PDF Forms from the list of tasks.
-
Under PDF Template, click the folder icon and choose
Employee Information Form.pdffrom Google Drive.Document Studio reads the PDF and shows a message such as 11 form fields found. The Field Mapping table lists every field it found.
Fill In the Fields
Section titled “Fill In the Fields”The Field Mapping table has two columns. Form Field is the name of a field inside the PDF. Mapped Value is what goes into it.
-
Click the Mapped Value box next to
Full Nameand choose theFull Namecolumn from the list of fields. The box shows{{Full Name}}. -
Do the same for every field you want filled. Leave a box empty to leave that field blank in the PDF.
-
Mix fixed text and columns where it helps. For example, map
Date Signedto{{Timestamp}}to use the date the form was submitted, or typeNorthwind Logisticsinto a company field so it’s the same on every copy.
Text fields take any text. The other field types only accept certain values:
| Field type | The value must be | Example |
|---|---|---|
| Text | Anything. If the PDF limits the number of characters, the extra characters are cut off. | {{Full Name}} |
| Checkbox | Yes, On, True, Y or OK (in any capitalisation) to tick the box. Anything else leaves it empty. |
Yes, or a sheet checkbox (TRUE) |
| Choice (radio buttons) | Exactly the name of one of the choices in the PDF, with the same capital letters | Full-time |
| Dropdown | Exactly one of the options in the PDF’s list | Warehouse |
Add a Photo or a Signature
Section titled “Add a Photo or a Signature”Text fields can’t hold pictures, so Document Studio places images on the page for you. Use this for a passport photo, a signature, a company logo or a QR code image.
Every image needs a box on the page: where its bottom-left corner sits (X and Y), and how big it can be (Width and Height). The numbers are in points. One point is 1/72 of an inch, so 72 points is one inch and about 28 points is one centimetre.
Unlike a spreadsheet, a PDF counts from the bottom-left corner of the page. X grows as you move right, and Y grows as you move up.

-
Under Embed Images, find the page size in the note below the table, such as The height of the page is 792 pixels and the width is 612 pixels. Document Studio calls points “pixels” here.
-
Measure where the image should go. Open the PDF in a viewer with a ruler, or estimate from the page size: the Northwind photo box starts 1.6 inches from the left edge of a 8.5-inch page, which is about
467points across. -
In the first row, type the X, Y, Width and Height of the box. For Daniel’s photo, that’s
467,565,100and120. -
If the PDF has more than one page, type the page number in Page. The first page is
1. -
In Image URL (or embed marker), choose the column that holds the picture, such as
{{Photo}}. A new empty row appears when you fill in the last one, so you can add the signature the same way:40,228,220,50and{{Signature}}. -
Click Preview, open the PDF it creates, and move a box a few points if the image isn’t quite in place.
The image keeps its shape. Document Studio scales it to fit inside the box and centres it, so a tall photo in a wide box gets space on both sides.
The image cell can hold:
- A Google Drive link to an image file. Google Forms file upload answers are Drive links, so a photo or signature uploaded with the form works as it is.
- A public link to a PNG or JPG image, such as
https://example.com/logo.png.
| Paper size | Width × height in points |
|---|---|
| US Letter | 612 × 792 |
| A4 | 595 × 842 |
| US Legal | 612 × 1008 |
Name and File Each PDF
Section titled “Name and File Each PDF”Once the PDF has at least one field, three more boxes appear next to PDF Template:
- Output file name: for example,
HR-104 {{Full Name}}saves Daniel’s form asHR-104 Daniel Okafor.pdf. - Google Drive Folder: the folder for the filled forms, such as
HR. If you leave it empty, the forms go into a folder calledDocument Studioin your Drive. - Subfolder Path: folders inside it, built from the answers.
New Hires/{{Department}}saves Daniel’s form inHR/New Hires/Warehouse. Document Studio creates folders that don’t exist yet.
Click Preview to fill the PDF with the first row of data, then click the View File link to open it. When it looks right, click Done.
Email the Filled PDF
Section titled “Email the Filled PDF”-
On the Tasks screen, click Add Another Task and choose Send Email.
-
Type the HR team’s address in the To field, and a subject such as
New hire form: {{Full Name}}, {{Department}}. -
Select Attach all merged files generated in this workflow. The filled PDF from the first task is attached to the email.
-
Click Done, then Continue.
To send the PDF to the new hire instead, put their email column in the To field. See Send Emails for CC, BCC and other senders.
Run the Workflow
Section titled “Run the Workflow”On the Save screen, choose when Document Studio fills the forms:
- Run on Form Submit: fills the PDF as soon as a new response arrives. This option only appears when the sheet is linked to a Google Form.
- Run workflow every hour: checks the sheet every hour for new rows. Use this when rows come from somewhere else, such as an import or another app.
Click Save & Run to fill PDFs for the rows already in the sheet, or Save & Close to wait for new ones.
Document Studio adds a column to your sheet whose name starts with [Document Studio] Fillable PDF Status. For each row, it shows a link to the filled PDF, so you can open any form from the sheet. See Triggers for the other ways to run a workflow.
Fill a Government or Third-Party Form
Section titled “Fill a Government or Third-Party Form”Forms you download, such as the IRS W-9, often have field names like f1_01[0] instead of Full Name. To find out which name belongs to which box on the page, number the fields:
-
Map each field to its own position in the list: type
1into the first Mapped Value,2into the second, and so on. -
Click Preview and open the PDF. Each box now shows its number.
-
Write down what each number is, such as
1is the name line, then replace the numbers with your columns.
Things to Know
Section titled “Things to Know”- Each filled PDF counts as a document. It uses one of your plan’s documents, as Create File does.
- The filled PDF can still be edited. The fields stay fillable, so anyone with the file can change an answer. When the answers must not change after signing, send the PDF for a digital signature, which gives you a signed copy that shows any later change.
- Password-protected PDFs can’t be filled. Remove the password in Acrobat, then upload the file again.
- Some fields aren’t listed. Document Studio fills text fields, checkboxes, choices and dropdowns. Read-only fields, digital signature fields and buttons are left as they are. Place a signature image over a signature field instead.
- Letters outside English. Accented letters, Greek and Cyrillic fill in correctly. Chinese, Japanese and emoji don’t show up in the PDF.
- Dates and numbers go into the PDF exactly as the sheet shows them. Set the format in Sheets with Format > Number before you run the workflow.
- The template stays untouched. Each row gets its own copy, so you can reuse the same PDF in other workflows.
Troubleshooting
Section titled “Troubleshooting”0 form fields found
Section titled “0 form fields found”The PDF has no fillable fields, or every field is read-only. Check it in Chrome or Acrobat Reader as described in Before You Start, and make it fillable if you can’t type into it.
PDF is encrypted and cannot be processed
Section titled “PDF is encrypted and cannot be processed”The PDF has a password or editing restrictions. Open it in Acrobat, remove the security under File > Properties > Security, save a copy and choose that copy as the template.
A checkbox, choice or dropdown stays empty
Section titled “A checkbox, choice or dropdown stays empty”The value doesn’t match what the field accepts. A checkbox needs Yes or TRUE. A choice or dropdown needs one of its options, spelled exactly the same, including capital letters and hyphens: Full-time won’t match Full time. To see the options, open the PDF in Acrobat Reader and click the field.
Text is cut off
Section titled “Text is cut off”The PDF limits that field to a number of characters, and Document Studio keeps only that many. Shorten the value in the sheet, or use a different field.
The image doesn’t appear
Section titled “The image doesn’t appear”- Open the link in the image column in a private browser window. If it asks you to sign in, the file isn’t shared with the account that runs the workflow.
- A web link must open a PNG or JPG image. Links to WebP, SVG or GIF images, or to a web page that shows the image, are skipped.
- The cell must hold the link itself. A cell with a file name, or with an
=IMAGE()formula, has no link to read.
Please map the form fields
Section titled “Please map the form fields”You saved the task without filling in any Mapped Value. Map at least one field.
