Import PDF Form Data
The Import PDF Form Data API will take the form data provided as a JSON, insert it into the PDF form, and generate the resulting PDF document.
Input Documents : Required
Supported formats:
- PDF (application/pdf) – Only PDF version 1.6 and above is supported.
- AcroForm and Static XFA – The input document must contain an interactive form to which form data will be imported.
Input Document
An interactive PDF form (AcroForm/Static XFA) to which form data, provided as a JSON, is imported to generate the resulting PDF document.
Important Notes:
- Only Static XFA files are supported.
- Dynamic XFA format is not supported and will result in an error.
REST API
See our public API Reference for Import PDF Form Data API.
Import PDF Form Data
The sample below demonstrates how to import form data from a JSON into PDF and generate the resulting PDF document.
Please refer to the API usage guide to understand how to use our APIs.
REST API
Copied to your clipboard// Please refer our REST API docs for more information// https://developer.adobe.com/document-services/docs/apis/#tag/Import-PDF-Form-Datacurl --location --request POST 'https://pdf-services.adobe.io/operation/setformdata' \--header 'x-api-key: {{Placeholder for client_id}}' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer {{Placeholder for token}}' \--data-raw '{"assetID": "urn:aaid:AS:UE1:23c30ee0-2e4d-46d6-87f2-087832fca718","jsonFormFieldsData":"{}"}'