Syncfusion library generates pdf correctly, its Chrome that caused some confusion.
I added the second field and found out that Google Chrome highlights focused field by changing its foreground and background colors:
Is it somehow possible not to change focused field appearance?
|
We have analyzed the reported issue “focused form field color changed in Google Chrome” and this is the behavior of the Chrome browser. We also ensured the same in creating the form fields in PDF document (with the background color) using Adobe Acrobat. |
That's how the same two text boxes pdf document looks like when rendered in Blazor (textbox dashed border style and red foreground color not applied):
Apparently, this is a bug in SfPdfViewerServer component. This topic should be moved back to blazor forums
|
We were able to reproduce the reported behavior with the provided details in our PDF Viewer. We will analyze further on it and update you with more details on 11th May 2020.
|
//Opens an existing document from stream
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(ms);
//Load the existing PDF form.
PdfLoadedFormFieldCollection fields = loadedDocument.Form.Fields;
//How to get all the formFields name as a list of string?
list FormFieldsNameList = ???
|
We do not have a direct property to get the form fields name. However, as a workaround we can get it and please refer the below code snippet for more details,
|
using System.Xml;
string text = XmlConvert.EncodeName(Convert.ToString("\")); |