Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.10
|
Leadtools.Forms.Recognition Namespace > FormRecognitionEngine Class : DeleteFormPage Method |
public void DeleteFormPage( FormRecognitionAttributes attributes, int pageNumber )
'Declaration Public Sub DeleteFormPage( _ ByVal attributes As FormRecognitionAttributes, _ ByVal pageNumber As Integer _ )
'Usage Dim instance As FormRecognitionEngine Dim attributes As FormRecognitionAttributes Dim pageNumber As Integer instance.DeleteFormPage(attributes, pageNumber)
public: void DeleteFormPage( FormRecognitionAttributes^ attributes, int pageNumber )
The object should be a Form attribute object. To delete a page from a Master Form attribute object, call the DeleteMasterFormPagemethod.
For a complete example of using form recognition and processing, refer to the FormRecognitionEngine example.
This example deletes a page from the Form
Imports Leadtools Imports Leadtools.Barcode Imports Leadtools.Codecs Imports Leadtools.Forms Imports Leadtools.Forms.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
using Leadtools; using Leadtools.Barcode; using Leadtools.Codecs; using Leadtools.Forms; using Leadtools.Forms.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); }