Blog post

Merge multiple PDF files with Nutrient Document Web Services API on Zapier

This tutorial shows you how to merge two PDF files into a single document using the Nutrient Document Web Services API on Zapier. This is ideal for combining reports, contracts, scanned documents, or any multi-part PDFs into one file.

Illustration: Merge multiple PDF files with Nutrient Document Web Services API on Zapier

What is Zapier?

Zapier is a no-code automation platform that lets you connect apps like Google Drive, Gmail, and Slack to build automated workflows. You create “Zaps” that consist of triggers and actions between connected services.

In this tutorial, you’ll build a Zap that merges two PDF files into one using the Nutrient API.

What is the Nutrient API?

Nutrient Document Web Services API helps you automate document workflows — from merging, converting, signing, OCR, and more. With a free account, you get 100 credits to test all tools.

You can build powerful workflows without code using Zapier and Nutrient.

What you’ll need

  • A Zapier account (a pro plan is necessary for multi-step Zaps)

  • A Google Drive account

  • Two PDF files stored in Google Drive

  • A Nutrient API key — sign up here

Step 1 — Trigger a new file in a Google Drive folder

  1. Select Google Drive as the trigger app.

Google Drive selected in Zapier trigger step

  1. Choose the New File in Folder trigger event.

Select ‘New File in Folder’ as the trigger event

  1. Connect your Google Drive account.

  2. Configure the folder that contains your first PDF file.

Choose the folder for the first PDF file

  1. Test the trigger to pull in a sample PDF.

Sample first PDF file pulled into the Zap

Step 2 — Find the second PDF in Google Drive

  1. Add another step: Google Drive > Find File.

Add Google Drive Find File step

  1. Set up the step to locate your second PDF:

    • Filename — Your second PDF file name

    • Search type — Filename contains

    • Drive — Your drive

Configuring search for second PDF file

  1. Test to confirm it locates the second file.

Test shows second PDF file found

Step 3 — Merge PDF files using Nutrient API

  1. Select Nutrient Document Web Services API as the app.

Nutrient API selected as action app

  1. Choose the Merge PDF action.

Action step to merge PDFs

  1. Connect your Nutrient API account with your API key.

Paste API key to connect account

You can find your key in the Nutrient dashboard.

API key shown in Nutrient dashboard

  1. Configure the action fields:

    • First PDF File URL — Use the file from step 1.

Mapped merge action fields in Zapier step

  • Second PDF File URL — Use the file from step 2.

Mapped merge action fields in Zapier step

  • Output File Name — Optional (e.g. merged_document.pdf).

Make sure both PDFs are publicly accessible or Zapier has access via Google Drive.

  1. Run a test to confirm the merge is successful.

Test showing merge completed successfully

Step 4 — Upload the merged PDF to Google Drive

  1. Add a final step: Google Drive > Upload File.

Add Upload File to Google Drive

  1. Configure the upload:

    • Folder — Choose a destination folder like /merged.

    • File — Use output from the Nutrient step.

    • File Name — Optional.

Mapped merged PDF file for upload to Drive

  1. Run a test to ensure the file uploads.

Test result showing successful upload of merged file

Conclusion

You’ve just created a Zap that merges two PDF files automatically using Nutrient API. This is great for workflows that involve combining cover pages with documents, appending summaries, or creating a final package from multiple files.

Expand your flow with steps like OCR or applying digital signatures.

Author
Hulya Masharipov
Hulya Masharipov Technical Writer

Hulya is a frontend web developer and technical writer at Nutrient who enjoys creating responsive, scalable, and maintainable web experiences. She’s passionate about open source, web accessibility, cybersecurity privacy, and blockchain.

Free trial Ready to get started?
Free trial