I have a existing pdf document with a bunch of textboxes on it. I'm populating each textbox and calling the Flatten() method. When I view the pdf file the line feeds are not present. Here is the code I'm currently using.
String fieldValue = "This is on first line \n this on the second line";
Document pdfDocument = new Document(path);
Form pdfForm = pdfDocument.Form;
TextBoxField field = pdfForm[fieldName] as TextBoxField;
field.Value = fieldValue;
I've looked at the replacable symbols help page but I believe that's for xml processing when creating brand new pdf documents. I've tried adding just a \n and \r which doesn't work. Tried using the Environment.NewLine doesn't work.
Could you please send me a code sample that accomplishes a carriage return\line feed with an existing document. Is this even possible or perhaps a limitation with the current release or pdf itself? Thanks.