I have PDF documents that have been created with formfields where the fieldnames match a legacy form engine (basically all numbers). The form I'm testing with is a generic check form with the data being supplied from an xml doc.
I'm following your sample code as follows:
string path = MapPath(".");
path = path.Substring(0, path.LastIndexOf("\\"));
string param = this.Request.Params[0];
string templatePdf;
templatePdf = path + @".\Resources\GENCHK.pdf";
string xml = path + @".\Resources\GENCHK.xml";
Response.AddHeader("content-disposition", "inline; filename=" + "GenCheckOut.pdf");
Response.ContentType = "application/pdf";
FormDemos.ImportXml(templatePdf, xml, Response.OutputStream);
Response.Flush();
Response.End();
public static void ImportXml(string templatePdf, string xml, System.IO.Stream outputStream)
{
//Assign an input pdf file.
Form form = new Form(templatePdf, outputStream);
//Open an existed fdf file.
System.IO.
FileStream xmlInputStream = new FileStream(xml, FileMode.Open);
//Export all the pdf fields' value into the fdf file.
form.ImportXml(xmlInputStream);
form.Save();
xmlInputStream.Close();
}
I'm running the trial version of pdf.kit 3.1. If you run the attached files, the 2nd address line on the 2nd agent does not display. Interestingly, if I omit the field name that corresponds to it (802), the city state zip line of the address does not display on the first agent.
I've checked out the form field definitions in adobe and they appear to be correct to me.
Can you review to see if this is a bug?
Thanks.
Mark