Increase Checkbox check symbol size

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  Increase Checkbox check symbol size

DynamicPDF CoreSuite for .NET (v8) Forum

 Nov 13 2017 1:52 PM
I am trying to increase the symbol size of the check-mark that gets printed on the document when a CheckBox (Inherits FormElement) is newed up and added to the page.

I tried to increase the FontSize property of the CheckBox with no luck. I am not sure if increasing the font size even helps.
The size of the symbol printed right now is too small and we are trying to make it visible. Any help would be appreciated.


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.

All times are US Eastern Standard time. The time now is 7:25 PM.