Hi Saurabh,
Thank you for contacting Syncfusion support.
We have analyzed the reported issue and suspect that the issue may occurs due to disable of form fields appearance. Kindly use the below code snippet to overcome this issue since SetDefaultAppearance(false) will creates the appearance manually,
|
//Load PDF document
PdfLoadedDocument document = new PdfLoadedDocument(bytes);
//Set default appearance
document.Form.SetDefaultAppearance(false);
foreach (var field in document.Form.Fields)
{
if (field.GetType().Name.Equals("PdfLoadedTextBoxField", StringComparison.InvariantCultureIgnoreCase))
{
((PdfLoadedTextBoxField)field).Text = "test";
}
if (field.GetType().Name.Equals("PdfLoadedCheckBoxField", StringComparison.InvariantCultureIgnoreCase))
{
((PdfLoadedCheckBoxField)field).Checked = true;
}
} |
Screenshot:
Please try the above suggestion in your end and let us know the result.
Regards,
Sowmiya Loganathan