Richtextbox field - Issues

HI


please refer two attachment.

1st attachment - RichtextBoxField.png
2nd attachment - RichtextBoxField1.png

1. how to set the background color of richtextbox to transparent?
2. after clicking textbox, background color gone? i want to set initially.
3. i put some breakpoints in middle of paragraph, refer the 2nd attachment. this is also i want initially but it is happening after clicking the text box only.

Thanks
Shanmuga sundaram C

Hi Shanmuga,

Thanks for your inquriy.

cshanmugasundaram:

  1. how to set the background color of richtextbox to transparent?

You may set field background color as following. However if the issue persist then please share your sample input and expected output PDF documents here, we will look into it and will guide you accordingly.

RichTextBoxField textBoxField = pdfDocument.Form[“Descrip”] as
RichTextBoxField;
textBoxField.Characteristics.Background = Aspose.Pdf.Color.Transparent;
textBoxField.Value = "Test";

cshanmugasundaram:
2. after clicking textbox, background color gone? i want to set initially.
I have set background color of TextBoxField as following and unable to notice reported issue.
TextBoxField textBoxField = pdfDocument.Form[“Name99”] as TextBoxField;
textBoxField.Characteristics.Background = Aspose.Pdf.Color.Bisque;
textBoxField.Value = “Test_Name”;

cshanmugasundaram:
3. i put some breakpoints in middle of paragraph, refer the 2nd attachment. this is also i want initially but it is happening after clicking the text box only.

Please share your sample code along with input and output document here, we will look into it and will guide you accordingly.

Best Regards,