How to Send Database or XML Data to Existing PDF Forms in Acrobat
Question details
The user needs to populate an existing PDF form using data exported from a database or an XML file to create individual completed PDF files for each data record.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Batch creating individual completed PDFs from a single PDF form template and a dataset (such as an XML export from a database).
- Observed behavior
- Requires a method to map database/XML records to corresponding PDF form fields and automate the generation of multiple populated PDF documents.
Ensure that your existing PDF form contains interactive text fields and that the field names exactly match the data nodes or headers in your XML file.
Manually Import Data (FDF, XFDF, or XML) into a PDF Form
Use Acrobat's built-in form tools to manually import a single record's XML or FDF data into your existing PDF form.
Adobe Acrobat natively supports importing data directly into form fields. This method is ideal for processing records one by one.
Launch Adobe Acrobat and open the existing PDF form that you want to populate.
Navigate to the 'Tools' tab and select 'Prepare Form' to activate the form editing and data management options.
In the right-hand pane, click on 'More' (or the wrench icon) and select 'Clear Form' to ensure all fields are completely empty before importing new data.
Click 'More' again and select 'Import Data'. Browse your computer for the supported data file (FDF, XFDF, or XML) containing the record, select it, and click 'Open' to populate the fields.

Automate Batch Creation with Scripts or Server Libraries
Implement a scripted solution or a third-party library to loop through a database and automatically generate individual PDFs for every record.
Use WPS Office for Streamlined PDF and Document Management
While complex database-to-PDF batch automation typically requires enterprise scripting, WPS Office is an excellent, lightweight alternative for everyday PDF form filling, editing, and document conversion without the heavy subscription costs.

Frequently Asked Questions
What file formats does Adobe Acrobat support for form data import?
Acrobat natively supports importing form data from FDF (Forms Data Format), XFDF (XML Forms Data Format), XML, and TXT files, provided the data structure matches the form fields.
Can I connect a live SQL database directly to a standard PDF form?
Standard PDF forms do not have built-in capabilities to maintain a live ODBC or SQL database connection. You must export the database records to an XML file first, or use a server-side enterprise tool.
Why are my imported XML fields not appearing in the PDF?
This usually occurs because the data node names in your XML file do not perfectly match the names of the interactive fields in your PDF form. Field mapping is strictly case-sensitive.
Does WPS Office support filling out interactive PDF forms?
Yes, WPS Office includes a robust built-in PDF reader and editor that allows you to click, type into, and save standard interactive PDF form fields seamlessly.




