PDFForms Template - Fill PDF Forms with Database Data

PDFForms template lets you populate PDF forms with data from your database. You can save completed forms, display them in the browser, send them by email, or automate the process from your application.

You can get this template for $50.

Buy now Live demo

In this live demo, you can use the sample PDF forms or upload your own form. If you need to fill your form with sample data, use SQL query select * from test.

How it works

Step 1. Upload a PDF form.

Step 2. Specify the SQL query that will populate the form and map the form fields to database fields.

Step 3. Populate and display the form, or use the API to automate the process in your projects.

Screenshots and live demos

Sample PDF Form
Mapping database fields to PDF form fields
Filled form

Changes history

Version 1 - April 2020

  • Upload forms and map database fields to form fields.
  • Fill forms, save them to the hard drive, display them in the web browser, or send them by email.

Live demo

You can use any of the forms already uploaded to this live demo or upload your own form and try it.

Enter live demo

System requirements

  • Version 11.1 or better of PHPRunner or ASPRunner.NET
  • A database supported by PHPRunner or ASPRunner.NET

Extensibility

After adding the PDFForms template to your project, you can manipulate PDF forms from your events and buttons. You can use these functions in any server-side event.

Note: Temporary files are saved to the templates_c folder. Make sure this folder is writable by the web server user.

Populate the form and save it to the hard drive

PHPRunner
ASPRunner.NET

Populate the form and display it in the web browser

It makes the most sense to use this function at the very end of events like AfterAdd, AfterEdit or BeforeDisplay. This should be the last statement in the event code.
PHPRunner
ASPRunner.NET

Populate the form and send it via email

PHPRunner
ASPRunner.NET

Frequently Asked Questions

How to set up this template on the web server

- PDFForms template uses the PDFtk software package. On a Linux web server, you need to have this package installed. It may already be installed, or you can contact your web hosting company. You also need to go to the Settings table and specify the path to the PDFtk executable. On Windows web hosting, make sure the web server user has permission to run EXE files. PDFForms template already comes with the Windows version of the PDFtk executable, so you only need to take care of the permissions.

- PHP only: make sure that the exec function is enabled in PHP settings.

- Write permissions need to be set on the files and templates_c folders. This is where PDF forms and temporary PDF files are stored.

Do I need Adobe Acrobat to create PDF forms?

Adobe Acrobat is one of the most popular options for creating PDF forms, but there are alternatives.

  1. PDFEscape
  2. DocHub
  3. Platoforms
  4. Wufoo