itext space out number in a comb field java

197 Views Asked by At

enter image description here

How do I make sure that the number are spaced are correctly?

fields.get("Page2[0].Line68bCombField[0].f2_081[0]").setValue("123456789");
fields.get("Page2[0].Line68dCombField[0].f2_082[0]").setValue("123423423444");
1

There are 1 best solutions below

1
On

iText 7 did not (yet) support comb fields.
Support for comb fields has been added.
The functionality should soon be available in the snapshot builds.
The value can be set using the flag

PdfTextFormField.FF_COMB