LogoDOCS
OverviewAuthenticationRate LimitsErrors
Logo
Sign in →

Extract PDF Form Data

The Extract PDF Form Data endpoint lets you read data from a fillable PDF. It extracts all form fields in the document along with their current values and returns them as a JSON object.

You can either upload a new PDF file directly or provide the documentId of an existing file stored on the server.

Request Body
filefilerequired if documentId is not provided

File type: .pdf

The PDF file to be processed. Used when uploading a new file directly.

documentIdstringrequired if uploaded file is not provided

The ID of an already uploaded file stored on our server.

Response format

The response is a flat object where each key is a form field name and each value is that field's current value. The value type depends on the underlying PDF field type:

text field → stringcheckbox → booleanradio group → string | nulldropdown → string[]multi-select → string[]unsupported (e.g. signature) → null
POST/forms/extract-data
CURL
NODE.JS
PYTHON
GO
PHP
JAVA
C#
RUBY
1curl -X POST "https://api.pdfgate.com/forms/extract-data" \2  -H "Authorization: Bearer YOUR_API_KEY" \3  -F "file=@YOUR_FILE.pdf"
JSON response
1{2  "full_name": "Jane Doe",3  "email_address": "[email protected]",4  "agree_to_terms": true,5  "country": ["United States"],6  "subscription_plan": "premium",7  "preferred_languages": ["English", "Spanish"],8  "signature_field": null9}