简体   繁体   English

如何在iTestSharp中的PdfCell中添加一个复选框?

[英]How do I add a checkbox to PdfCell in iTestSharp?

I am generating a PDF and would like to add locked check boxes (both checked and unchecked, depending on the data received) with the label. 我正在生成PDF,并想在标签上添加锁定的复选框(选中和未选中,取决于接收的数据)。 I am not sure how to do that. 我不确定该怎么做。

cell.Phrase = new Phrase("Photos", boldFont);
table.AddCell(cell);

The checkbox should go before the "Photos" label. 该复选框应位于“照片”标签之前。 I have done some research and I cannot find anything that has what I am looking for. 我已经进行了一些研究,但找不到任何我想要的东西。 Can someone help?! 有人可以帮忙吗?

Thanks in advance! 提前致谢!

Itext Example itext示例

On this link displays information for the generation of buttons dynamically 在此链接上显示用于动态生成按钮的信息

The example are in java, but should be similar in. net 该示例在Java中,但在.net中应该类似

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM