How to Populate PDF Forms with SQL Database Data (ADBC Alternatives)
Question details
The user needs a new method to populate interactive PDF forms with data from a SQL database following the discontinuation of the ADBC (Adobe Database Connectivity) feature.

- Product
- PDF Forms
- Device & OS
- not provided
- Scenario
- Automating the extraction and transfer of data between a SQL database backend and interactive fields within a local or web-based PDF form.
- Observed behavior
- The legacy ADBC connection method is no longer supported, requiring the implementation of external applications or server-side scripts to bridge the PDF and the database.
Ensure you have access to your SQL database credentials, basic knowledge of server-side scripting or application development (such as PHP, C#, or Python), and your interactive PDF form with properly named data fields.
Use Server-Side Scripts to Transfer Data
Submitting PDF form data to a web-based server script is the most reliable, secure, and cross-platform alternative to ADBC.
Instead of connecting the PDF directly to the database locally, you can use a middleman server script (written in PHP, Node.js, Python, etc.). The PDF form submits a request to the server, the server queries the SQL database, and it returns the data in a format the PDF understands, such as FDF (Forms Data Format) or XFDF.
Open your PDF form editing software and ensure all interactive fields have exact names that you can reference in your code.
Create a button in the PDF configured to 'Submit a form'. Set the submit URL to the endpoint of your future server-side script.
Write a script on your server that connects to your SQL database via standard database drivers (e.g., PDO for PHP). Have the script fetch the required rows based on user input.
Program the script to echo or return the database results formatted as an FDF or XFDF file. The PDF application will read this response and automatically populate the corresponding fields.

Develop a Custom Standalone Application (IAC)
Use Interapplication Communication (IAC) to write an external desktop application that passes data between the SQL database and the PDF.
Create a Custom Local Plug-in
Develop a C/C++ plug-in that loads directly inside the PDF software to access local SQL databases.
Create and Prepare Interactive PDF Forms with WPS Office
Before connecting to a SQL database via backend scripts, you need a properly structured PDF form. WPS Office provides intuitive, professional tools to create, edit, and manage interactive PDF forms seamlessly.
- 1. Open your document: Launch WPS Office and open your existing PDF file, or start a new document to convert into an interactive form.
- 2. Access the Form tools: Navigate to the 'Form' tab in the top ribbon to access the suite of interactive form elements.
- 3. Add and name form fields: Insert text fields and checkboxes into your document. Ensure you name each field exactly as it appears in your SQL database columns or server script parameters.
- 4. Save and deploy: Save your interactive PDF. It is now properly structured and ready to interact with your server-side SQL data extraction scripts.

Frequently Asked Questions
Why was the ADBC feature discontinued in PDF applications?
ADBC (Adobe Database Connectivity) was deprecated primarily due to significant security vulnerabilities associated with allowing a document to execute direct database queries, as well as the industry-wide shift toward safer, scalable web APIs and server-side processing.
Can I export PDF form data directly into a SQL database without using code?
No, standard PDF forms do not have native, code-free capabilities to write directly to a SQL database. You must use a server-side processing script, a specialized third-party data extraction tool, or an API to bridge the PDF fields and the database.
Are LiveCycle database connections still a viable option for new projects?
No, using LiveCycle for direct database connections is generally discouraged for new projects. The technology is considered legacy, and transitioning to standard HTML web forms or server-side API integrations is highly recommended for longevity and security.
What data formats should I use to exchange data between a server and a PDF?
FDF (Forms Data Format), XFDF (XML Forms Data Format), and standard XML are the industry-standard formats. A server script can query a SQL database and return an FDF file that the PDF application reads to automatically populate its fields.




