In ABBYY FineReader Server 14, you can use scripts to control the processing of your documents at various processing stages. Scripts are triggered by certain events that occur during document processing. You can use scripts to customize document separation, automate document identification and indexing, and control the handling of exported documents and failed jobs.
The following scripting languages are supported:
- C# .Net
- Visual Basic .Net
- JScript .Net
Note. To be able to use .NET scripts, you need ABBYY FineReader Server 14 Update 7 or later.
|Initialize Index Fields
|Processing Station or Indexing Station
|Index Field Changed
|Failed Job Published
For example, the context object of a Separation script has an IRecognizedPage interface, which provides access to the properties of a recognized page (e.g. Width, Height, Resolution, Text,etc.) and methods for interacting with a recognized page (e.g. RemoveAllBlocks).
See also: Complete list of available interfaces and descriptions of their methods and properties.
Each context object offers the following two logging methods:
- AddMessage(string) – This method adds an information message to the context object. Depending on the type of the script, the context object will be a job, a page or a document. The information message will be displayed in the job log and will also be added into the XML result.
- LogMessage(string) – This method records a message in the event log.
// Automatic Indexing script (C#)
doc.AddMessage("This message will be added to current document in the job.");
doc.LogMessage("This message will be recorded in the event log.");
This section describes how to:
- Supported Scripting Languages
- Script Types
- Using Enumerations
- Using Object Collections
- Using Local Functions
- Namespaces in .NET scripts
- Assembly References in .NET Scripts
- Reusing Code in .NET Scripts
- Accessing Index Field Values
- Sample Scripts