Multiline form field ignoring newline with short value

Have a multi-line textbox that is ignoring the newline character when it’s value its short. If the first character is a space, then it works correctly.

// text that starts with a newline and is less than eight characters ignores the newline
TextBoxField textBoxField1 = pdfDocument.Form[“COMPANY1”] as TextBoxField;
textBoxField1.Value = Environment.NewLine + “Walmart”;
textBoxField1.Flatten();

TextBoxField textBoxField2 = pdfDocument.Form[“COMPANY2”] as TextBoxField;
textBoxField2.Value = " " + Environment.NewLine + “Walmart”;
textBoxField2.Flatten();

AsposeTest1.zip (5.3 KB)

@alistairw

We have logged this problem in our issue tracking system as PDFNET-52869. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.