remove FormField gray background

Hi, I need to have form fields in my documents, but when I print the document to pdf I get the grey background in those form fields. I need to remove the grey background to have it all white

3 Replies 1 reply marked as answer

KB Kurthis Banu Abdul Majeeth Syncfusion Team April 28, 2021 05:57 AM UTC

Hi Daniel, 

We are checked your requirement. Document Editor having “applyShading” API for your requirement. Kindly use below code snippet for your use case scenario.  

Code Snippet:  

 this.container.documentEditorSettings.formFieldSettings.applyShading = false;  
  
  


 
Please refer below documentation link for your reference:  


please let us know if you have any questions.  

Regards, 
Kurthis Banu A. 


Marked as answer

DS Daniel Sánchez Marzoa April 28, 2021 08:13 AM UTC

I've tried that line to set the applyShading to false, but it had no effect. I ended up doing this instead:

this.editorContainer.documentEditorSettings.formFieldSettings.shadingColor = "#FFFFFF";

wich worked for me.

Thanks for the help


SM Suriya Murugan Syncfusion Team April 30, 2021 03:13 AM UTC

Hi Daniel,  

Thanks for your update. 

Regards, 
Suriya M. 


Loader.
Up arrow icon