问题
I would like to use data from a form and add to my pdf template. I use the following for textfields...
PdfStamper formFiller = new PdfStamper(reader, ms);
AcroFields formFields = formFiller.AcroFields;
formFields.SetField("Name", formData.Name);
How do I check a checkbox?
回答1:
I think this should do the trick:
formFields.SetField("checkBoxId", "Yes");
来源:https://stackoverflow.com/questions/6253211/how-do-i-check-a-check-box-in-a-pdf-template