Google Sheets integration
Generate a PDF for each spreadsheet row with a reusable workflow. Choose your Google Sheets source, map its columns to a published template, and collect the finished PDFs in a ZIP.
This guide follows the screenshots: student_report_cards_10_students contains a Students tab and a Results tab. The Student Report Card template combines each student’s details with their subject scores. Your own spreadsheet and template can use different names.
Before you start
You need a ShipPDF workspace where you are an owner or manager, permission to generate documents, enough generation credits, and a Google account with access to your spreadsheet. Create and publish a template with inputs for your data and a collection for repeating rows such as subjects or invoice line items.
See Create your template and Data Schema and Default Data.
Put unique, nonblank column names in row 1 of each worksheet. Use one main row per document. In this example, Students has Student ID, Student Name, Class, and Academic Year. Results has Student ID, Subject, Paper 1 Score, and Paper 2 Score, with multiple rows per student. Both tabs must be in the same spreadsheet. Main-sheet IDs must be unique and nonblank when you link related rows.
Students: one row per report
The Students tab contains 10 students, one per row, with headers in row 1. Student ID identifies each student; the same ID appears on their subject rows in Results. Gender and Age are also available as source columns if your template needs them.

Results: multiple subject rows per student
The Results tab stores one row per subject, with Student ID, Subject, Paper 1 Score, and Paper 2 Score. For example, STU0001 appears on five subject rows. Linking by Student ID puts those five rows inside that student’s report instead of creating five separate PDFs.

1. Create a workflow
Open Workflows in your workspace sidebar. Click New workflow, or Create a workflow if the list is empty.

On Choose a starting flow, select Use this flow on Google Sheets to ZIP. This adds three connected blocks: Google Sheets → Generate PDFs → Create ZIP.

The editor has blocks on the canvas and a settings panel on the right. Click a block to configure it. You can rename the workflow in the field at the top; this example keeps Google Sheets to ZIP. Use Save draft to keep unfinished work. Preview and publish the completed setup before running it.
2. Configure the Google Sheets source
Select the Google Sheets block. In the right panel:
- Choose the Google account connection under Connection. Use Manage connections to connect or manage Google access in Integrations if needed.
- Choose a file under Saved spreadsheet, or use the spreadsheet picker button to select a file. Once a file is selected, the button reads Change spreadsheet.
- Select Students under Main worksheet.
- Under Rows to generate, choose All rows or Row range.

The example connection is Google Sheets · Workspace · Default, and the column preview shows 10 student rows. Each nonempty main-sheet row creates one PDF. Blank rows are skipped.
A run supports up to 50 documents. A row range uses actual worksheet row numbers, with both endpoints included: row 1 contains headers, so rows 2–51 select up to 50 documents. Matching child rows are included automatically and do not need to fall within that range.
Only the member who connected Google can authorize additional spreadsheets through the picker. Other authorized members can use saved spreadsheets available to the selected connection.
3. Choose a template and map fields
Select the Generate PDFs block. Under Published template, choose My Project / Student Report Card.
Under Field mapping, choose the source column for each template field:
| Template field | Students column |
|---|---|
report.studentId |
Student ID |
report.studentName |
Student Name |
report.className |
Class |
report.year |
Academic Year |

Dot notation identifies fields inside objects. Leave unmapped omits a field from the submitted data; review the preview to check the resulting template values. Calculated fields are computed by the template.
Optionally set PDF filename field to report.studentName, as shown. ShipPDF appends a Unix timestamp to the mapped value, producing names such as Aiman Hakim-1794901428665194.pdf. Blank values use document as the base name. Select a single-value field; collections and lists cannot supply filenames. Saved names stay the same on retries and are used for individual downloads and ZIP entries.
4. Link related rows
Scroll down in the Generate PDFs settings to the collection report.subjects.
- Set Get collection items from to Results.
- Under Link the rows, set Match this column in Students to Student ID.
- Set With this column in Results to Student ID.
- Map the collection’s fields to columns in Results:
| Collection field | Results column |
|---|---|
subject |
Subject |
paper1 |
Paper 1 Score |
paper2 |
Paper 2 Score |

Each report includes all Results rows whose Student ID matches its Students row. Use Preview Results data to inspect the related values. The example has 50 result rows for 10 students; it creates 10 PDFs, with subject rows inside each report.
Matching children retain worksheet order. Unmatched child rows are ignored, and a parent without matches receives an empty collection. Each collection can use its own related worksheet and keys within the same spreadsheet. Collections support up to 100 related rows; nested repeating collections are not supported.
5. Preview and publish
Keep Create ZIP connected after Generate PDFs. This output collects the generated PDFs into one archive for download.
Click Preview at the top of the editor. Preview your documents shows the expected document count and the first page of up to three documents. Generated PDFs include all pages.

Switch between Document 1, Document 2, and Document 3, and check the Source rows reference, student details, subject rows, calculations, and layout. Use the zoom controls or Fit for a closer look. Choose Back to editor if you need to correct the setup, then preview again.
Click Publish workflow when the preview is ready. Publishing does not use generation credits or start a run. It makes the reviewed workflow available to run. Save draft alone does not publish it.
6. Run the workflow
After publishing, click Run in the workflow editor. Each run reads fresh spreadsheet values using the published configuration. New PDFs use generation credits.
The run opens under Requests → Batches. Its summary shows Records, Generated, Failed, and Source rows, while Document results shows the status of each source row.

Generation continues in the background. You can leave the page and return through Requests → Batches.
7. Download the results
When the run is Completed, click Download ZIP to retrieve the archive. You can also click a PDF filename under Document results to download that report separately.

The example finishes with 10 generated reports and no failures. The filenames use student names because report.studentName was selected as the filename field. PDFs remain in ShipPDF; this flow does not upload files to Google Drive or change spreadsheet cells.
Update and rerun
To change the source, row range, template, or mappings, open the workflow, edit the relevant block, then Preview → Publish workflow again. Draft changes must be published before you can run the edited workflow. If you republish the PDF template, review the mappings and preview and publish the workflow again.
Each new run generates new PDFs from the selected rows, including rows processed before, and uses new generation credits. For another group of rows, change the source block’s Row range before previewing and publishing. A queued run keeps its published configuration and reviewed template revision.
Troubleshooting
- Run is unavailable: complete the source, template mappings, and connected output, then preview and publish the current workflow.
- Missing spreadsheet or connection: check Connection and Manage connections. Ask the connecting member to select new files through the picker. After reconnecting, reselect the connection and spreadsheet as needed, then preview and publish.
- More than 50 documents: choose a smaller Row range. The limit also applies if an All rows source grows after publishing. Reads remain limited to 5,000 nonempty data rows, 100 columns, and a 5 MB response per worksheet, even when you select a smaller range.
- Missing or incorrect related items: check the selected worksheet and matching columns. Main IDs must be nonblank and unique. Text keys are trimmed, but
001differs from1; store IDs as text if leading zeros matter. - Invalid data or unexpected formatting: check headers, missing mapped columns, and field types. ShipPDF reads underlying values: currency is numeric and percentages are fractions. Map dates to date or datetime fields; a date mapped to text may show its serial number. For text dates, use ISO formats such as
2026-11-01. Formatting belongs in the template.
For help, email support@shippdf.com with the workflow name and error details.