We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Fail to fill PDF XFA field with Aspose.Pdf.Facades.Form.FillField() function

We are trying to use Form.FillField() method to fill the attached PDF form (XFA based).

Here is the code we used. However the output PDF file still contains the old value (2016-0315) and did not have the new value (1122334455) assigned. Could you help on figuring out the issue?

Aspose.Pdf.Facades.Form pdfForm = new Aspose.Pdf.Facades.Form();
foreach (string field in pdfForm.FieldNames){
if (field == @“form1[0].CaseID[0]”)
pdfForm.FillField(field, “1122334455”); //debug could step into this line of code

Hi Jack,

Thanks for your inquiry. I have tested your scenario with shared document using Aspose.Pdf for .NET 11.4.0 and managed to observe the reported issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-40424 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:
mso-bidi-language:AR-SA”>Best Regards,