How do I check a check box in a pdf template

浪尽此生 提交于 2019-12-08 07:30:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!