
Generate an Invoice Grouped by Delivery with Make and PDF.co
10 MIN READ
Combine the PDFs currently in a Google Drive folder into one document using Make and PDF.co. This workflow searches the folder, downloads each PDF, and saves the merged result to a different folder.
It includes PDFs directly inside the source folder—not nested folders, shortcuts, or Google Docs files.
You’ll need:
01-cover.pdf and 02-details.pdf.Use unique, consistently numbered filenames when document order matters.
Create a Make scenario and add Google Drive → Search for Files/Folders as its first module.
Connect your Google account and configure:
100.Enter this query:
mimeType = 'application/pdf' and trashed = falseEnable the option that adds the selected folder to the query. This ensures the search is restricted to that folder.
Run the search and compare its returned files with the source folder. If the result reaches the configured limit, it may be incomplete; increase the limit and retest before proceeding.
Use a search for this workflow because Watch Files in a Folder detects arrivals or modifications rather than returning a fresh list of every current PDF. See the Google Drive module documentation.
Add Google Drive → Download a File:
Next, add PDF.co → Upload a File. Create a connection using your PDF.co API key and map:
This produces a temporary PDF.co URL for each PDF. Your Drive files can remain private; no public sharing link is required. Uploading files to PDF.co consumes credits.
See the PDF.co upload reference.
Add an Array aggregator after the PDF.co upload module.
Configure:
Run the scenario and inspect the array. It should contain one filename and one uploaded URL for every source PDF.
Before the merge module, add a filter requiring the array’s item count to be:
2.100 when the search limit is 100.Use Make’s length() function on the aggregated array for these comparisons. This stops empty or potentially truncated searches from producing a partial merged document.
In the next step’s Input Link field, use:
join(map(sort(ARRAY; asc; NAME_KEY); URL_KEY); ",")Replace:
Use the raw keys shown in the aggregator’s test output, not these placeholder labels.
The formula sorts the filename-and-URL pairs, extracts their URLs, and joins them with commas. Confirm that the cover PDF’s URL comes first. See Make’s array functions.
Add PDF.co → Merge a PDF and select your PDF.co connection.
Configure:
combined.pdf.For larger documents, select the appropriate execution mode and follow the merge module reference. Only pass the completed PDF to the saving step.
Add Google Drive → Upload a File and select a destination folder different from the source folder.
Map:
Keeping the output separate prevents future searches from including a previously merged PDF.
Run the complete scenario and open the saved document. Check that:
Add a third PDF to the source folder and rerun the scenario to confirm it is included.
Once testing succeeds, save the scenario, choose its schedule, and activate it. Each scheduled run creates a new merged snapshot of the folder’s matching PDFs.
In this tutorial, you learned how to merge PDF files in the Google Drive folder using PDF.co and Make.

10 MIN READ

5 MIN READ
8 MIN READ
4 MIN READ
Create an account, get an API key and test a request.