I have a PDF form which has 1 single-line text field and 2 multi-line text fields. All of them use Courier font. When putting 1 line of text in a single-line or 1 line of text in a multi-line text box the font is Courier as expected. However, when putting more than 1 line of text in a multi-line text box, the font changes unexpectedly from Courier to Arial.
Attaching the sample form, and here is the sample code:
Aspose.Pdf.Kit.Form form = new Aspose.Pdf.Kit.Form("mytestform.pdf", "mytestform-out.pdf");
form.FillField("SingleLineTextBox", "John Smith");
form.FillField("MultiLineTextBox1", "123 E. 1st Ave.");
form.FillField("MultiLineTextBox2", "123 E. 1st Ave\nApt 1234\nBurbank, CA\n91522");