public byte[] GetData()
Public Function GetData() As Byte()
public byte[] getData();
public void setData(
byte[]
);
public:
array<byte>^ GetData();
Forms attributes that are generated by FormRecognitionEngine.CreateMasterForm for Master Forms or FormRecognitionEngine.CreateForm for Forms will have the form's attributes that are specified in FormRecognitionEngine.ObjectsManagers. To start modifying the form's attributes you have to open it using OpenMasterForm for Master Forms or OpenForm for Forms, or create it using FormRecognitionEngine.CreateMasterForm for Master Forms or FormRecognitionEngine.CreateForm for Forms.
Forms attributes data will be updated with the changes you made to the form attributes such as addition of a page or deletion of a page once the attributes is closed using either FormRecognitionEngine.CloseMasterForm for Master Form attributes or FormRecognitionEngine.CloseForm for Form attributes.
Once you finish modifying the form's attributes close it to reflect your changes.
GetData is useful to save attributes data specially for Master forms on the disk or database.
This example saves form's attributes to a file.
using Leadtools.Forms.Common;
using Leadtools.Forms.Recognition;
using Leadtools.Codecs;
/// This method saves master form attributes to the specified file name.
public void SaveMasterFormAttributes(FormRecognitionAttributes attributes, string attributesFileName)
{
byte[] formData = attributes.GetData();
File.WriteAllBytes(attributesFileName, formData);
}
Imports Leadtools.Forms.Common
Imports Leadtools.Forms.Recognition
Imports Leadtools.Codecs
''' This method saves master form attributes to the specified file name.
Public Sub SaveMasterFormAttributes(attributes As FormRecognitionAttributes, attributesFileName As String)
Dim formData As Byte() = attributes.GetData()
File.WriteAllBytes(attributesFileName, formData)
End Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm EST.
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.