Affects Version/s: 2.0.6
Fix Version/s: None
Environment:Windows 7 and Mac OSX, Java 1.8.0_121
Hello, I ve got a simple pdf file "TestPDF.pdf" with just one text field named "Text1". It is set up as auto size and multiline field.
My code :
Please open the attached "TestPDF_gen.pdf" file in the Adobe Acrobat. It shows the text cut off at the end. However if you click inside the field it sudenly renders text properly.
Other remarks :
1. If you open the "TestPDF_gen.pdf" file in the Preview (Mac OSX default pdf viewer) then the Text1 shows text properly auto sized.
2. If you do flat the form by uncommenting form.flatten(). Then the Text1 is cut off at the end of the text and font size is not auto. I ve tried both Adobe Acrobat and Preview. See the "TestPDF_gen_flatten.pdf"
3. I ve also tried calling setDefaultAppearance method before setting the field's value - field.setDefaultAppearance("/Helv 0 Tf 1 0 0 rg") but it did not help.