I need to put a series of aligned checkboxes in a specific location on a pdf.
We are able to fill in all the text fields and I have a destination added to the nameddestinations and I can draw text into it with the fixedcontenteditor, but I can not figure out how to put checkboxes on the form.
document.NamedDestinations.Add("services", new Location() { Page = document.Pages[0], Left = 500, Top = 400 });
NamedDestination destination = null;
document.NamedDestinations.TryGetValue("services", out destination);
if (destination != null)
{
var loc = destination.Destination as Location;
var editor = new FixedContentEditor(destination.Destination.Page);
editor.Position.Translate(loc.Left.Value, loc.Top.Value);
CheckBoxField checkBoxField = new CheckBoxField("SampleCheckBox");
checkBoxField.IsChecked = true;
editor.DrawText("Found the text box place!");
}