When filling in values of PDF form text fields the vertical alignment is wrong. It appears as if the alignment is getting set to bottom even though my code doesn't change it. I don't have this problem using Adobe Acrobat filling out the PDF.
My Sample Code is below and the sample file I used is attached.
My Sample Code is below and the sample file I used is attached.
Document pdfDocument = new Document("input.pdf"); // Get a field TextBoxField textBoxField = pdfDocument.Form["textbox1"] as TextBoxField; TextBoxField codeField = pdfDocument.Form["CODE Field"] as TextBoxField; // Modify field value textBoxField.Value = "S"; codeField.Value = "S"; pdfDocument.Save("output.pdf");