简体   繁体   中英

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. 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

On this link displays information for the generation of buttons dynamically

The example are in java, but should be similar in. net

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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