How to set line spacing for FormFields in iText?

It seems that the default line spacing in the fields of the iText 7 form is 2 or 1.5, but I would really like to remove line spacing. Usually I set the line spacing by calling setMultipliedLeading(..)on the object Paragraph, but neither PdfAcroFormits subclass PdfTextFormFieldhas this method, and only lines can be set as the value of the form field. How to set the value for line spacing? Thanks in advance.

+4
source share
1 answer

According to ISO-32000-1 12.7.4.3, you cannot establish a leading role in AcroForm.

+3
source

Source: https://habr.com/ru/post/1656941/


All Articles