开发者

How do I check a check box in a pdf template

开发者 https://www.devze.com 2023-03-10 23:14 出处:网络
I would like to use data from a form and add to my pdf template.I use th开发者_JAVA百科e following for textfields...

I would like to use data from a form and add to my pdf template. I use th开发者_JAVA百科e following for textfields...

PdfStamper formFiller = new PdfStamper(reader, ms);
AcroFields formFields = formFiller.AcroFields;
formFields.SetField("Name", formData.Name);

How do I check a checkbox?


I think this should do the trick:

formFields.SetField("checkBoxId", "Yes");
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号