The AddMasterFormPage(FormRecognitionAttributes,RasterImage,PageRecognitionOptions,PageProgressCallback) Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
- attributes
- The Master Form attributes object.
- page
- The page image that is going to be added to Master Form attributes object.
- pageOptions
- Specifies the page options.
- callback
- Optional callback to show operation progress.
Visual Basic (Declaration) | |
---|---|
Overloads Public Sub AddMasterFormPage( _ ByVal attributes As FormRecognitionAttributes, _ ByVal page As RasterImage, _ ByVal pageOptions As PageRecognitionOptions, _ ByVal callback As PageProgressCallback _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As FormRecognitionEngine Dim attributes As FormRecognitionAttributes Dim page As RasterImage Dim pageOptions As PageRecognitionOptions Dim callback As PageProgressCallback instance.AddMasterFormPage(attributes, page, pageOptions, callback) |
C# | |
---|---|
public void AddMasterFormPage( FormRecognitionAttributes attributes, RasterImage page, PageRecognitionOptions pageOptions, PageProgressCallback callback ) |
C++/CLI | |
---|---|
public: void AddMasterFormPage( FormRecognitionAttributes^ attributes, RasterImage^ page, PageRecognitionOptions^ pageOptions, PageProgressCallback^ callback ) |
Parameters
- attributes
- The Master Form attributes object.
- page
- The page image that is going to be added to Master Form attributes object.
- pageOptions
- Specifies the page options.
- callback
- Optional callback to show operation progress.
For a complete example of using form recognition and processing, refer to the FormRecognitionEngine example.
This example adds a page to the master form
Visual Basic | Copy Code |
---|---|
''' This method adds a page to a Master Form recognition attributes object. Public Sub AddPageToMasterForm(ByVal recognitionEngine As FormRecognitionEngine, ByVal image As RasterImage, ByVal attributes As FormRecognitionAttributes) recognitionEngine.OpenMasterForm(attributes) recognitionEngine.AddMasterFormPage(attributes, image, Nothing) recognitionEngine.CloseMasterForm(attributes) End Sub |
C# | Copy Code |
---|---|
/// This method adds a page to a Master Form recognition attributes. public void AddPageToMasterForm(FormRecognitionEngine recognitionEngine, RasterImage image, FormRecognitionAttributes attributes) { recognitionEngine.OpenMasterForm(attributes); recognitionEngine.AddMasterFormPage(attributes, image, null); recognitionEngine.CloseMasterForm(attributes); } |
The attributes should be a Master Form attributes, this method does not work for Forms attributes. To add a page to a Form attributes use FormRecognitionEngine.AddFormPage.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7