Extract PDF Form Data API
Extract submitted PDF form data as structured JSON.
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
Quick Start
Get started quickly with a single API call. This endpoint fits easily into your existing workflows and works with any language that can make HTTP requests, including Node.js, Python, PHP, and more. Use the examples to get started in just a few steps.
curl -X POST "https://api.pdfgate.com/forms/extract-data" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@YOUR_FILE.pdf"
API Parameters
File
The PDF file you want to extract AcroForm data from. You must provide either this or documentId.
Document Id
The ID of a PDF that already exists in your PDFGate account. Use this instead of uploading a file again.