[SerializableAttribute()]
public class FormRecognitionAttributes
Attributes are encoded into array of bytes. If it is necessary to modify the attributes for the added or deleted pages of the form, the attributes object should be opened using either FormRecognitionEngine.OpenForm or FormRecognitionEngine.OpenMasterForm. Then close the object by using either FormRecognitionEngine.CloseForm or FormRecognitionEngine.CloseMasterForm.
using Leadtools.Forms.Common;
using Leadtools.Forms.Recognition;
using Leadtools.Codecs;
/// This method loads the specified master form attributes.
public FormRecognitionAttributes LoadMasterFormAttributes(string attributesFileName)
{
byte[] formData;
formData = File.ReadAllBytes(attributesFileName);
FormRecognitionAttributes attributes = new FormRecognitionAttributes();
attributes.SetData(formData);
return attributes;
}