How to Submit Fillable PDF Form Data in WordPress
Question details
The user wants to add a submit button to an existing fillable PDF hosted in WordPress and automatically route the submitted form data to an email address or a MySQL database.

- Product
- PDF / WordPress
- Device & OS
- not provided
- Scenario
- Hosting a fillable PDF on a WordPress website to collect user data efficiently.
- Observed behavior
- Standard PDFs uploaded to the WordPress media library cannot natively send form data directly to a WordPress backend or MySQL database without an intermediary script or plugin.
Ensure you have administrative access to your WordPress dashboard to install necessary form plugins, or have a configured server endpoint capable of receiving POST requests.
Use a WordPress Form Plugin with PDF Integration
This is the most user-friendly approach. Instead of hosting a raw PDF, you map web form entries to a PDF template.
Since standard PDFs cannot securely communicate directly with a MySQL database on their own, the best practice in WordPress is to use a web-based form that captures the data first.
Plugins like Gravity Forms, WPForms, or Formidable Forms allow users to fill out fields on a webpage. Extensions like 'Gravity PDF' or 'E2Pdf' can then automatically populate your original fillable PDF with this data, email it, and save the raw data in your database.
Navigate to your WordPress dashboard, go to 'Plugins' > 'Add New', and install a form builder like Formidable Forms or Gravity Forms.
Install a complementary PDF plugin (such as E2Pdf) that allows you to upload your existing fillable PDF.
Create a web form that matches your PDF fields. Use the PDF plugin's visual editor to link the web form fields to the specific text boxes and checkboxes on your uploaded PDF.
Set up form notifications to attach the generated PDF and send it to your desired email address. The submitted data will also be natively stored in your WordPress database.

Configure the PDF Submit Button to a Custom Web Endpoint
If you must use the actual PDF file for data entry, you can configure its submit button to POST data to a server-side script.
Easily Design and Edit Fillable PDF Forms with WPS Office
Before integrating your PDF with WordPress, you need to create a professional fillable form. WPS Office provides comprehensive PDF editing tools allowing you to add text fields, checkboxes, and buttons seamlessly.
- 1. Open Your PDF: Launch WPS Office and open your existing PDF or start from a blank document.
- 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to reveal the interactive field options.
- 3. Insert Interactive Fields: Click on 'Text Field', 'Check Box', or 'Push Button' and drag them onto your document layout.
- 4. Configure Properties: Double-click the inserted fields to configure their names, appearance, and specific submit actions.
- 5. Save and Export: Save your completed fillable PDF, which is now ready to be uploaded or mapped in your WordPress site.

Frequently Asked Questions
Can a PDF submit data directly to a MySQL database?
No, a PDF cannot securely connect directly to a database. It must send its data via an HTTP POST request to a middleman server-side script (like PHP), which then connects to and updates the MySQL database.
What data formats can a PDF submit button send?
Depending on how the submit action is configured in your PDF editor, a PDF can send data as FDF (Forms Data Format), XFDF (XML-based FDF), HTML (URL-encoded), or send the entire finalized PDF document.
Is it better to use a web form or a fillable PDF in WordPress?
For data collection on a website, a web form is generally superior because it is responsive, accessible, and easily routes data to databases. However, if strict document formatting or legal signatures are required, mapping web form inputs to a PDF template via plugins is the best hybrid solution.
Why does my PDF submit button do nothing when viewed in a web browser?
Many built-in web browser PDF viewers (like Chrome or Safari's default viewers) have limited support for interactive PDF form actions. Users typically need to download the PDF and open it in a dedicated desktop application to utilize the submit functionality reliably.




