PDF Association logo

Discover pdfa.org

Key resources

Get involved

How do you find the right PDF technology vendor?
Use the Solution Agent to ask the entire PDF communuity!
The PDF Association celebrates its members’ public statements
of support
for ISO-standardized PDF technology.

Member Area

iText DITO 1.4 is now available!

We are proud to announce the general availability of iText DITO 1.4. This latest release of iText’s high-convenience PDF document generator includes a barcode generation wizard, plus several other new template design features and extended API capabilities.
The iText Suite is a comprehensive PDF SDK which includes iText Core and optional add-ons to give you the flexibility to fit your needs. iText Core is an open source … Read more
iText DITO 1.4 is now available!

iText
July 15, 2020

Member News


Print Friendly, PDF & Email

We’ve just launched version 1.4 of iText DITO, our high-convenience PDF document generator. This new release includes several great new features, such as a wizard for barcode generation, conditional formatting of alphanumeric data bindings, formatting preservation for HTML tags embedded in JSON payloads, and PDF password protection. Read on to learn more details about the new features and capabilities.

Barcodes

It is now finally possible to generate two-dimensional and three-dimensional barcodes from input data contained in the JSON payload. The wizard consists of three steps to insert a scannable barcode into your template.

In the first step you simply select the type of barcode you would like to insert, in the second you bind the barcode to a field in the data collection, and in the third step you can configure the barcode in detail.

Barcodes behave like images and can be freely moved around or resized as required.

As of now, iText DITO supports barcodes in Code 128, Code 39, Codabar, EAN-8, EAN-13, Interleaved 2 of 5, MSI, Postnet, Planet, PDF 417, QR code and Data matrix formats. Of course, you can set type-specific configurations for all of these in the template designer.

Conditional Formatting of Alphanumeric Data Bindings

With this new release you can add text formatting to conditions, allowing you to style data bindings depending on their value. As an example, if you want to emphasize negative numbers (e.g. by printing them bold, red and underlined) iText DITO can do that for you.

That’s not all though. You can also swap fonts, increase or decrease the font size, character or word spacing, font color, font face and decorations depending on a condition, or even a series of conditions.

This feature is designed to enable conditional text formatting configurations to be saved as reusable styles. Below you can see an example of a style configured to print negative numbers in red.

This will result in something like the following:

More complex conditional styles can also be created. For example, different formatting can be applied if numbers are above or below a certain threshold.

Conditional styles are not limited to number-based conditions though. You can also define textual or Boolean-based style conditions for data bindings, useful for if you need to change content formatting based on a true or false condition, such as whether or not a payment has been made:

Text Formatting Preservation

The iText DITO Editor provides a wide range of text formatting capabilities at your disposal. However, sometimes data you pass to the PDF producer service may already contain formatting tags. For example, rich text fields in the user interfaces of your systems of record may store content with its layout in HTML format.

If you want to preserve this formatting, iText DITO 1.4 can now read a selection of HTML layout tags and styles and apply them. Supported tags in the first iteration of this feature are:

  • <b>
  • <i>
  • <u>
  • <strong>
  • <span>

Supported styles are:

  • font-family
  • font-weight
  • font-style
  • font-size
  • color

If a tag or style is unsupported, it will be replaced with an empty string, and all attributes except style will be ignored and removed from the tag.

To activate formatting preservation, simply tick the box in the data bind configuration. If you leave the box unticked, all tags will be considered as flat text, and printed.

Password Protection for Generated PDFs

In iText DITO 1.4 it is now possible to protect generated PDFs with a password configured at the API level.

You can set a user password which prompts users to fill out a password to open the document, an owner password which prompt users to fill out a password to interact with the document, or both, and set the appropriate protection levels through the newly added Encryption Properties of the PDF Producer operation.

The permission parameters you can configure are:

  • Content copying;
  • Editing;
  • Printing;
  • Screen reader access.

Other Improvements

iText DITO 1.4 also introduces a number of smaller improvements:

  • Broadening of the pdfProductionResult operation to throw warnings for a variety of template-related issues, with such warnings shown in preview mode;
  • Extended browser support for the iText DITO Editor: as of version 1.4 Microsoft Edge 79.0 and higher are supported;
  • Support for Boolean values in both conditional content and conditional formatting wizards;
  • Extension of the conditional formatting options with strike-through text decoration;
  • Widow and orphan control through CSS.

As usual, for a detailed rundown of what’s new in the v. 1.4 release of iText DITO, you can download the Release Preview Guide or check out the Release Notes. However, we recommend that the best way to explore the new features and capabilities is to try them out yourself with a free 30-day online trial.

Still have questions?

If you are interested in learning more or have additional questions, contact us

If you are interested in learning more about iText DITO, click here

Original Post: https://itextpdf.com/en/blog/itext-news-technical-notes/itext-dito-14-now-available


The iText Suite is a comprehensive PDF SDK which includes iText Core and optional add-ons to give you the flexibility to fit your needs. iText Core is an open source PDF library that you can build into your own applications and is a reimagining of the popular iText 5 engine…

Read more
WordPress Cookie Notice by Real Cookie Banner