Blog post

Create PDF forms with Nutrient Document Web Services API on Zapier

This tutorial shows you how to programmatically create fillable PDF forms using the Nutrient Document Web Services API on Zapier. You’ll upload a PDF file and a JSON file with field structure to Google Drive and generate a fully interactive PDF form.

Illustration: Create PDF forms with Nutrient Document Web Services API on Zapier

What is Zapier?

Zapier is an automation platform that connects your favorite apps and services with no code required. You can build “Zaps” to automate repetitive tasks by setting up triggers and actions between apps like Google Drive, Slack, Gmail, and more.

What is the Nutrient API?

Nutrient Document Web Services API is a document processing platform that enables file conversion, editing, form creation, signing, OCR, and more. With your free account, you’ll receive 100 credits to get started building powerful PDF workflows.

What you’ll need

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

  • A Google Drive account

  • A PDF file to annotate

  • A JSON file describing the form field structure (public or findable via Zapier)

  • A Nutrient API key

Step 1 — Trigger a new file in Google Drive

  1. Choose Google Drive as the trigger app.

Google Drive selected as the trigger app in Zapier

  1. Select the New File in Folder trigger event.

New File in Folder trigger selected in Zapier

  1. Connect your Google Drive account.

  2. Configure your folder trigger:

    • Drive — Select your personal or shared drive.

    • Folder — Choose one where new PDF files are uploaded (e.g. /form-templates).

Drive and folder configuration in the Zap trigger step

  1. Test the trigger to ensure it pulls in a sample PDF.

Trigger test showing a valid PDF file pulled from Google Drive

Step 2 — Find the matching JSON file action

  1. Choose Google Drive and search for the Find a File action event.

Adding the ‘Find File’ step in Google Drive

  1. Configure the step:

    • Filename — Enter your expected JSON file name, such as form_fields.json.

    • Search Type — Choose Filename contains.

    • Drive — Choose your drive.

Find File configuration searching for form JSON

Make sure your JSON file is publicly accessible or shared with anyone with the link.

  1. Test this step to confirm it retrieves the JSON.

Test showing JSON file located for form fields

Step 3 — Create PDF form action (Nutrient API)

  1. Add Nutrient Document Web Services API as the action app.

Nutrient API selected as the action app in Zapier

  1. Choose the Create PDF Form action.

Action selected to create PDF forms

  1. Connect your Nutrient account using your API key.

Paste your Nutrient API key

You can find your key in the Nutrient dashboard.

Find and copy your API key from the dashboard

  1. Fill in the fields:

  • PDF Template File URL — Use the result of step 1.

Form creation step configured with PDF and JSON file URLs

  • Form Structure JSON URL — Use the result of step 2.

Map the Annotations JSON file URL to the action configuration

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

  1. Test the step to make sure the PDF form is generated successfully.

Test showing form fields successfully added to PDF

Step 4 — Upload the created form to Google Drive

  1. Add another step with Google Drive, and select the Upload File action.

    Google Drive selected to upload final file

  2. In the configuration:

    • Drive — Choose your Google Drive.

    • Folder — Select a destination like /completed-forms.

    • File — Use the output from the Nutrient API step.

Upload file step mapped to form creation output

  1. Run a test to confirm the annotated file uploads successfully.

    Test confirming final form PDF was uploaded to Drive

Conclusion

You’ve now created a Zap that takes a plain PDF and transforms it into a fillable form using a JSON structure and the Nutrient API. This is ideal for generating contracts, intake forms, or surveys at scale.

Want more automation? Combine this with PDF signing, flattening, or OCR workflows.

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