Posted by a ceTe Software moderator
Hello,
Setting font size for the checkbox will affect the size of the check symbol inside the checkbox. Also please note that it won’t affect the size of the checkbox. If you would like to increase the checkbox symbol size then you will need to set the dimensions (width and height) using Width and Height properties. Below is the code sample for setting width and height for the checkbox.
Document document = new Document();
Page page = new Page(PageSize.Letter);
CheckBox checkBox = new CheckBox("chk", 5, 7, 10, 10);
checkBox.DefaultChecked = true;
checkBox.ToolTip = "Check it";
checkBox.Width = 50;
checkBox.Height = 50;
page.Elements.Add(checkBox);
document.Pages.Add(page);
document.Draw(@"C:\Temp\MyDocument.pdf");
If you are merging a PDF and looking to modify the dimensions of the existing form fields then please note that the DynamicPDF Generator/Merger products do not support altering the dimensions and positions of the existing form fields in the PDF.
Thanks,
ceTe Software Support Team.