Hi Team,
Can you please let me know how to manage the text flow for a Text field. I need a text field whose contents can be of any length . I want the Textfield to expand based on the content. The below TextField has a fixed size and If I enter more data the font size is getting reduced in the generated PDF. Please help me on this.
Document pdfDocument = new Document(@“C:\Users\wb541348\Desktop\IMP\POC\InteractivePdf\Output.pdf”);
// Create a field
TextBoxField textBoxField = new TextBoxField(pdfDocument.Pages[1], new Aspose.Pdf.Rectangle(100, 200, 300, 300));
textBoxField.PartialName = "textbox1";
textBoxField.Value = "Text Box";
// TextBoxField.Border = new Border(
Border border = new Border(textBoxField);
border.Width = 5;
border.Dash = new Dash(1, 1);
textBoxField.Border = border;
textBoxField.Multiline = true;
// Add field to the document
pdfDocument.Form.Add(textBoxField, 1);
// Save modified PDF
pdfDocument.Save(@"C:\Users\wb541348\Desktop\IMP\POC\InteractivePdf\Result.pdf");