Extract PDF Form Data API

Extract submitted PDF form data as structured JSON.

NODE.JS
CURL
PYTHON
GO
PHP
JAVA
C#
RUBY
1const fs = require("fs/promises");23(async () => {4  const form = new FormData();56  const bytes = await fs.readFile("YOUR_FILE.pdf");7  const file = new File([bytes], "YOUR_FILE.pdf", { type: "application/pdf" });8  form.append("file", file);910  const res = await fetch("https://api.pdfgate.com/forms/extract-data", {11    method: "POST",12    body: form,13    headers: { Authorization: "Bearer YOUR_API_KEY" },14  });1516  if (res.status === 201) {17    const data = await res.json();18    console.log(data);19  } else {20    const text = await res.text();21    console.error(text);22  }23})();
720,000+Documents processed monthly
1,300+Developers using the API
1.6sAverage processing time
99.9%Uptime

Extract PDF Form Data API Overview

The Extract PDF Form Data API allows you to read values from interactive PDF form fields and return them as structured JSON as part of an automated document workflow. It is designed for use cases where submitted form data needs to be processed, validated, or stored by backend systems.

Extracting form data makes it possible to work with user input programmatically without relying on manual review or custom PDF parsing logic. This is commonly used after a form has been completed to capture field values for databases, APIs, or downstream business processes.

This endpoint can be used on its own or combined with other PDFGate endpoints. A common workflow includes generating a fillable PDF, collecting user input, extracting the submitted data as JSON, and optionally flattening the document to preserve the final state.

The Extract PDF Form Data API is well suited for SaaS platforms, internal tools, and document automation systems that require reliable access to PDF form data without manual intervention.

Useful Guides

View All Guides ↗

API Parameters

Document Id

String

The ID of a PDF that already exists in your PDFGate account. Use this instead of uploading a file again.

File

File

The PDF file you want to extract Acro Form data from. You must provide either this or document Id.

Integrate in minutes

Use your favorite language with simple REST API endpoints, SDKs, and step-by-step developer guides.

Start building with PDFGate today

Generate PDFs, send documents for signature, and automate your document workflows in minutes.

Free trial · No credit card required