We are using Aspose PDF to fill a distributed form. The form is being filled with out problems. Our problem occurs when we submit the form and try to add it to a response file. Acrobat gives the error: “The fields in the file “…” do not exactly match the fields in the specified response file”.
Hi Kenneth,
Yes I’ve attached the pdf form we are filling. I have found that the issue is isolated to radio buttons. Only filling the other fields results in no error.
Hi Kenneth,
Aspose.Pdf.Facades.Form
pdfForm = new Aspose.Pdf.Facades.Form();<o:p></o:p>
pdfForm.BindPdf("c:/pdftest/MortRetOrders_0514_distributed_copy2_distributed.pdf");
pdfForm.FillField("Type of Job", "Variable Data");
MemoryStream finalStream = new MemoryStream();
//formEditor.Save(destFile);
// pdfForm.Save("c:/pdftest/MortRetOrders_0514_distributed_copy2_distributed_Filled.pdf");
pdfForm.Save(finalStream);
Response.Clear();
Response.ClearHeaders();
Response.ClearContent();
Response.Charset = "UTF-8";
Response.AddHeader("Content-Length", finalStream.Length.ToString());
Response.AddHeader("content-disposition", "inline; filename=" + "CreditApp.pdf");
Response.ContentType = "application/pdf";
Response.BinaryWrite(finalStream.ToArray());
Response.Flush();
Response.End();
We were using Aspose.Pdf 8.9.1. I updated to 9.2.1 based on your last post and everything is working for me now.
Hi Kenneth,