- HTML to PDF APIConvert HTML and URLs into PDFsExtract PDF Form Data APIEasily extract data from PDFsWatermark PDF APIAdd custom watermarks to PDFsProtect PDF APISecure your PDFs with passwordCompress PDF APIReduce file size without losing qualityFlatten PDF APIFlatten PDFs to make form permanentDigital Signature APISend documents for signing
- API DocumentationAPI DocumentationFull REST API referenceNodeJS SDKClient library for Node.jsJava SDKClient library for JavaC# SDKClient library for C#PHP SDKClient library for PHPPython SDKClient library for Python
- Pricing
- Contact Us

Extract PDF Form Data API
Extract submitted PDF form data as structured JSON.
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})();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
StringThe ID of a PDF that already exists in your PDFGate account. Use this instead of uploading a file again.
File
FileThe PDF file you want to extract Acro Form data from. You must provide either this or document Id.
Start building with PDFGate today
Generate PDFs, send documents for signature, and automate your document workflows in minutes.
Free trial · No credit card required




