|
//Create a new PDF document
PdfDocument document = new PdfDocument();
//Add a new page to the PDF document
PdfPage page = document.Pages.Add();
//Create a textbox field and add the properties
PdfTextBoxField textBoxField = new PdfTextBoxField(page, "FirstName");
textBoxField.Bounds = new RectangleF(0, 0, 100, 20);
textBoxField.ToolTip = "First Name";
textBoxField.Text = "Hello";
//Set the border width
textBoxField.BorderWidth = 0;
////Set the border color
//textBoxField.BorderColor = new PdfColor(Color.White);
//Add the form field to the document
document.Form.Fields.Add(textBoxField);
|