ApplyDocumentDefinitions Method of the Project Object
This method applies Document Definitions of the project (specified by the IProject::DocumentDefinitions property) to the documents from the specified batches. Document Definitions matching is a process of selecting Document Definition that can be applied to a particular page and matching fields of the Document Definition against an image. The process must be performed before recognition.
Use this method to match the Document Definitions to project documents explicitly. With the help of this method you can select the mode of Document Definitions matching. Also you can use the Recognize method of the Project object with correct recognition mode, in this case Document Definitions will be matched automatically before recognition.
Visual Basic .NET
Sub ApplyDocumentDefinitions( _ BatchIds As IntsCollection, _ Incremental As Boolean _ )
HRESULT ApplyDocumentDefinitions( IIntsCollection* BatchIds, VARIANT_BOOL Incremental );
- [in] This parameter refers to the IntsCollection object that contains a set of identifiers of the batches. Document Definitions should be matched to the documents of these batches. This parameter is optional and may be set to 0, in which case Document Definitions are matched to all the documents of the project.
- [in] This parameter specifies the mode of Document Definitions matching. It can be set to TRUE if you want to match Document Definitions to the documents which do not have applied Document Definitions and the documents with changed Document Definitions. When it is set to FALSE, ABBYY FlexiCapture SDK will match document definitions to all the documents of the project. This parameter is optional. The default value of the parameter is TRUE.
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
- During this method call documents in the project can be reorganized, e.g. documents can be merged or split depending on the Document Definitions applied to them, also some document identifiers can be changed.
- To match Document Definitions to only several documents from the batch, use the ApplyDocumentDefinitions method of the Batch object.