Flattening checkboxes

Flattening checkboxes

Forum member · Dec 31, 2013
Hi, I am rendering a PDF which contains multiple checkboxes. Below is the code for one checkbox: CheckBox checkBox = null; checkBox = new CheckBox("samplename", 25, 25, 50, 50); checkBox.DefaultChecked = true; checkBox.ReadOnly = true; In firefox, the checkboxes are not checked when I view the pdf using the firefox built in pdf viewer. When I open the pdf with adobe, the checkboxes are checked. Is there something missing in my code? Is there any way to flatten the checkboxes?

Re: Flattening checkboxes

Support · Dec 31, 2013
Hello, As the PDF document is opening fine with other PDF viewers like Adobe Reader, it looks like this could be a rendering issue with the built in viewer of FireFox browser. The DynamicPDF for .NET API produces the PDF as per the PDF specifications and there is nothing in our product which is causing this behavior. Regarding the code you posted, it looks good and it is one of the ways to flatten PDF document. You can also use CreateLabel method of our API for form flattening. Please refer to the documentation on form flattening here Thanks, ceTe Software Support Team.