public FormRecognitionAttributes()
public:
FormRecognitionAttributes();
__init__() # Default constructor
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;
}
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.file.Files;
import java.nio.file.Paths;
import org.junit.*;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
import leadtools.forms.recognition.FormRecognitionAttributes;
public void loadMasterFormAttributesExample() throws IOException {
final String LEAD_VARS_IMAGES_DIR = "C:\\LEADTOOLS23\\Resources\\Images";
String attributesFileName = combine(LEAD_VARS_IMAGES_DIR, "leadtools.pdf");
byte[] formData;
formData = Files.readAllBytes(Paths.get(attributesFileName));
FormRecognitionAttributes attributes = new FormRecognitionAttributes();
attributes.setData(formData);
assertTrue("Attributes loaded incorrectly", formData.length > 0);
System.out.println("Command run, attributes loaded.");
}
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 ET
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.