Details
-
Type:
Task
-
Status: Closed
-
Priority:
Major
-
Resolution: Not A Problem
-
Affects Version/s: 2.0.4
-
Fix Version/s: None
-
Component/s: AcroForm
-
Labels:None
-
Environment:Windows
Description
I use pdfbox to fill a form. One of fields is address (multiline). If I use keyboard to enter, the field can accommodate 4 lines. However if I use pdfbox such as
field.setValue("line 1 \n line2 \n line3 \n line4"), it only accommodates 2 lines. I notice that the height of each line is much bigger than what is entered using keyboard, and so the field only has space for 2 lines now.
The font size looks the same in both cases. One just has more space between lines than the other. Did anyone have this issue before? Appreciate any help.