Hi Tommy,
Please find attached the PDF Template i generated in adobe lifecycle designer 8.0 and here is the code
Random RandomClass = new Random();
int num = RandomClass.Next(1, 100);
string templatePdf;
string output = "mynew" + num;
string Mydir = "C://Manish/";
templatePdf = Mydir + doc_type + ".pdf";
Form form = new Form(templatePdf, Mydir + output + ".pdf");
//Fill the field "Name" with "Mike".
form.FillField("Name", name);
//Choose the field "Gender" with "Male".
form.FillField("Gender", "Male");
//Fill the field "Telephone".
form.FillField("Telephone", tel);
//Fill the field "Address".
form.FillField("Address", address);
//Choose the item "GradeTwo" of the Combo field "Grade".
form.FillField("Grade", "GradeTwo");
//use case for checking the checkbox "Lodging".
//form.FillField("Lodging","Yes");
//use case for unchecking the checkbox "Lodging".
//form.FillField("Lodging", "Off");
//Fill the image button field.
//form.FillImageField("Photo", path + @".\Resources\lovely.jpg");
form.FlattenAllFields();
form.Save();
HttpResponse Response = Context.Response;
Response.ContentType = "application/pdf";
Response.WriteFile(Mydir + output + ".pdf");
Response.End();