Aumkar Naik

Aumkar Naik

  • NA
  • 264
  • 6.3k

How to print tick on pdf checkbox

Dec 22 2016 3:19 AM
Required tick on pdf checkbox while printing pdf form from asp.net using itextsharp.
 
Sample code :-
 
PdfReader pdfReader = new PdfReader(pdfTemplate);
PdfStamper pdfStamper = new PdfStamper(pdfReader, stream);
AcroFields pdfFormFields = pdfStamper.AcroFields;
 
if (chk1stinvestormf.Checked)
{
pdfFormFields.SetField("chkconfirmnewinvestor","Yes","true");
//pdfFormFields.GenerateAppearances = true;
}
 

Answers (1)