Hi,
I have a PDF with form fields in it. The PDF contains "allergies_label_pg1" text box form field with no back ground color and no border/no border style(this has been set using adobe acrobat XI pro).
Based on some condition, i'm setting the background color, width and style to the text box form field using below code.
var pdfForm = new Aspose.Pdf.Facades.Form();
pdfForm.BindPdf(dataDir + @"\samplePdf.pdf");
FormFieldFacade formFieldFacade1 = pdfForm.GetFieldFacade("allergies_label_pg1");
formFieldFacade1.BorderStyle = FormFieldFacade.BorderStyleSolid;
formFieldFacade1.BorderWidth = 1;
formFieldFacade1.BackgroundColor = System.Drawing.Color.LightCoral;
formFieldFacade1.BorderColor = System.Drawing.Color.Red;
pdfForm.FillField("allergies_label_pg1", "This patient has more than 5 adverse drug reactions. Please refer to page 5 for complete list.");
pdfForm.Save(dataDir + @"\resultPdf.pdf");
The "resulrPdf.pdf" file doesn't have the background color and style.
Any help appreciated.
Thanks in advance.