Blog post

Extract tables from PDF with Nutrient Document Web Services API on Zapier

This tutorial shows you how to extract structured table data from PDF files using the Nutrient Document Web Services API on Zapier. You’ll trigger the workflow when a PDF is uploaded to Google Drive and extract its tables into a structured JSON format for reporting, analytics, or automation.

Illustration: Extract tables from PDF with Nutrient Document Web Services API on Zapier

What is Zapier?

Zapier is a no-code automation tool that connects your favorite apps and services. You can create workflows (“Zaps”) that automate actions between tools like Google Drive, Gmail, Slack, Notion, and more.

What is the Nutrient API?

Nutrient Document Web Services API provides more than 30 document automation tools for PDFs, images, and Office files. With your free account, you get 100 credits to experiment with:

  • Converting documents to/from PDF

  • Extracting tables, text, or metadata

  • Adding digital signatures or redactions

  • Running OCR, annotations, and form actions

What you’ll need

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

  • A Google Drive account

  • A PDF file stored in Google Drive (table content inside)

  • A Nutrient API key — get one here

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

  1. Select Google Drive as the trigger app.

Select Google Drive as the Zap trigger

  1. Choose the New File in Folder trigger event.

Choose ‘New File in Folder’ trigger event

  1. Connect your Google Drive account.

  2. Configure the trigger:

  • In the Drive field, select your Google Drive.

  • Select or create a folder where PDFs with tables will be uploaded (e.g. /extract-tables).

Configure the folder to watch for PDF files with tables

  1. Test with a sample PDF containing tables.

Test the trigger with a sample PDF containing table data

Step 2 — Extract tables from PDF

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

Choose Nutrient as the action app

  1. Select the Extract Tables from PDF action.

Select the ‘Extract Tables from PDF’ action event

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

Paste your API key to connect to Nutrient API

You can find your API key in the Nutrient dashboard.

Copy your API key from the Nutrient dashboard

  1. Fill out the fields:

    • PDF File URL — From step 1 (Google Drive trigger).

    • Output File Name — Optional (e.g. extracted_table.json).

Fill in the action fields including PDF file and output name

Ensure the PDF is publicly accessible via URL or shared through Zapier’s Google Drive integration.

  1. Test the step. The result will be a structured JSON file containing extracted table data.

Successful test showing table data extracted into JSON format

Step 3 — Upload the extracted table to Google Drive

  1. Add Google Drive as the final app and select Upload File.

Choose Google Drive ‘Upload File’ action

  1. Configure:

    • Drive — Select your drive.

    • Folder — Choose a destination like /extracted-json.

    • File — Use the output from step 2 (JSON file).

Map the extracted table JSON from the Nutrient step

  1. Run a test to confirm the JSON file is uploaded to drive.

Final test shows JSON file uploaded to Drive

Conclusion

You’ve now automated the process of extracting tabular data from PDFs and saving it as a JSON file using Zapier and the Nutrient API. This workflow is perfect for pulling out table-based data from receipts, invoices, reports, or financial documents.

You can expand this Zap to:

  • Add parsed data to Google Sheets.

  • Send alerts when new tables are extracted.

  • Automatically archive or analyze extracted tables using other apps.

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