←Select platform

DeleteFormPage Method

Summary
Deletes the specified page from the specified Form attribute object.
Syntax
C#
VB
C++
Java
public void DeleteFormPage( 
   FormRecognitionAttributes attributes, 
   int pageNumber 
) 
  
Public Sub DeleteFormPage( _ 
   ByVal attributes As FormRecognitionAttributes, _ 
   ByVal pageNumber As Integer _ 
)  
public void deleteFormPage( 
   FormRecognitionAttributes attributes, 
   int pageNumber 
); 
public: 
void DeleteFormPage(  
   FormRecognitionAttributes^ attributes, 
   int pageNumber 
)  

Parameters

attributes
The Form attribute object.

pageNumber
The page being deleted from the form. The page number is a 1-based index.

Remarks

The object should be a Form attribute object. To delete a page from a Master Form attribute object, call the DeleteMasterFormPagemethod.

Example

For a complete example of using form recognition and processing, refer to the FormRecognitionEngine example.

This example deletes a page from the Form

C#
VB
using Leadtools; 
using Leadtools.Barcode; 
using Leadtools.Codecs; 
using Leadtools.Forms.Common; 
using Leadtools.Ocr; 
using Leadtools.Forms.Processing; 
using Leadtools.Forms.Recognition; 
using Leadtools.Forms.Recognition.Barcode; 
using Leadtools.Forms.Recognition.Ocr; 
 
/// This method deletes a page from form attributes for recognition. 
public void DeletePageFromForm(FormRecognitionEngine recognitionEngine, 
                               int pagenumber, 
                               FormRecognitionAttributes form) 
{ 
   recognitionEngine.OpenForm(form); 
   recognitionEngine.DeleteFormPage(form, pagenumber); 
   recognitionEngine.CloseForm(form); 
} 
Imports Leadtools 
Imports Leadtools.Barcode 
Imports Leadtools.Codecs 
Imports Leadtools.Forms.Common 
Imports Leadtools.Ocr 
Imports Leadtools.Forms.Processing 
Imports Leadtools.Forms.Recognition 
Imports Leadtools.Forms.Recognition.Barcode 
Imports Leadtools.Forms.Recognition.Ocr 
 
''' This method deletes a page from form attributes for recognition. 
Public Sub DeletePageFromForm(recognitionEngine As FormRecognitionEngine, pagenumber As Integer, form As FormRecognitionAttributes) 
   recognitionEngine.OpenForm(form) 
   recognitionEngine.DeleteFormPage(form, pagenumber) 
   recognitionEngine.CloseForm(form) 
End Sub 
Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Recognition Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.