• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support

Check Box

Creates a checkbox form field on a PDF page.

Code

using DRIT.Pdf;

using var doc = new PdfDocument();
var page = doc.Pages.Add(PdfPageSize.A4);

// Add a checkbox field
var checkBox = doc.Forms.AddField(new PdfRect(100, 700, 20, 20), "agree");
checkBox.FieldType = PdfFieldType.CheckBox;
checkBox.IsChecked = false;

doc.Save("checkbox.pdf");

Output

checkbox.pdf

  • Improve this Doc
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX