LEADTOOLS Forms (Leadtools.Forms.Recognition assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AddMasterFormPage(FormRecognitionAttributes,RasterImage,PageRecognitionOptions) Method
See Also 
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.

The AddMasterFormPage(FormRecognitionAttributes,RasterImage,PageRecognitionOptions) 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.
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 of using form 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 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);
}

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

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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