public void ExportFormFields(bool exportFormFields)
{
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertCheckBox("CheckBox", false, 15);
HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions
{
SaveFormat = SaveFormat.HtmlFixed,
ExportEmbeddedCss = true,
ExportEmbeddedFonts = true,
ExportEmbeddedImages = true,
ExportEmbeddedSvg = true,
ExportFormFields = exportFormFields
};
//For assert test result you need to open documents and check that checkbox are clickable in "ExportFormFiels.html" file and are not clickable in "WithoutExportFormFiels.html" file
if (exportFormFields == true)
{
doc.Save(MyDir + "ExportFormFiels.html", htmlFixedSaveOptions);
}
else
{
doc.Save(MyDir + "WithoutExportFormFiels.html", htmlFixedSaveOptions);
}
}