iText DITO: Can I link to data sources (e.g. ERP, CRM, databases) to insert data directly into forms/templates?

26th March 2019
iText PDF

A: Yes, we support data binding using the JSON format. The following example shows data binding using JSON to create tickets for an event:

Imagine you already have all the necessary information of the people attending stored in a database. You want to create an input form to gather the relevant data from the database, and an output form that looks like the final invitation you’d be sending. This output form is a PDF, which is built from the data in the database.

The first thing you need to add is a first name. You need to create JSON data defining the data bind property, followed by the field value.

The JSON-data could look like this:

{
    "first_name": "John"
}

first_name is the value of the data bind property of a field, while the field value taken from the data source is John. If you specify a field containing text input and bind the input to first_name, the field will automatically resolve to John.



Contact

Still have questions? 

We're happy to answer your questions. Reach out to us and we'll get back to you shortly.

Contact us
Stay updated

Join 11,000+ subscribers and become an iText PDF expert by staying up to date with our new products, updates, tips, technical solutions and happenings.

Subscribe Now