Flattening checkboxes

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v5)  /  Flattening checkboxes

DynamicPDF CoreSuite for .NET (v5) Forum

 Dec 31 2013 5:55 AM
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?
 Dec 31 2013 11:52 AM
Posted by a ceTe Software moderator
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.

All times are US Eastern Standard time. The time now is 6:40 AM.