Leadtools.Forms.Recognition Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AddMasterFormPage(FormRecognitionAttributes,RasterImage,PageRecognitionOptions) Method
See Also  Example
Leadtools.Forms.Recognition Namespace > FormRecognitionEngine Class > AddMasterFormPage Method : AddMasterFormPage(FormRecognitionAttributes,RasterImage,PageRecognitionOptions) Method



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.
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.
Appends a new page to the specified Master Form attributes object. The Master Form attributes object should be opened before the addition using FormRecognitionEngine.OpenMasterForm.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub AddMasterFormPage( _
   ByVal attributes As FormRecognitionAttributes, _
   ByVal page As RasterImage, _
   ByVal pageOptions As PageRecognitionOptions _
) 
Visual Basic (Usage)Copy Code
Dim instance As FormRecognitionEngine
Dim attributes As FormRecognitionAttributes
Dim page As RasterImage
Dim pageOptions As PageRecognitionOptions
 
instance.AddMasterFormPage(attributes, page, pageOptions)
C# 
public void AddMasterFormPage( 
   FormRecognitionAttributes attributes,
   RasterImage page,
   PageRecognitionOptions pageOptions
)
C++/CLI 
public:
void AddMasterFormPage( 
   FormRecognitionAttributes^ attributes,
   RasterImage page,
   PageRecognitionOptions^ pageOptions
) 

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.

Example

For a complete example on using the forms recognition and processing, refer to the FormRecognitionEngine example.

This example adds a page to the master form

Visual BasicCopy Code
''' This method adds a page to a Master Form recognition attributes.
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); 
}

Remarks

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 AddFormPage.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features