RecAPI
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Modules Pages

Profile handling for setting the environment according to each workflow. More...

Enumerations

enum  PROFILES_INTENT {
  PI_Default ,
  PI_Indexing ,
  PI_Archiving ,
  PI_UnstructuredText ,
  PI_TabulatedData ,
  PI_DataExtraction ,
  PI_FormatRetention ,
  PI_ContentReuse ,
  PI_EditableCopy ,
  PI_BarcodeReading ,
  PI_FormCreation ,
  PI_DocClassify ,
  PI_MakePDFSearchable ,
  PI_SIZE
}
 Intent of the workflow helped by the profile. More...
 
enum  PROFILES_SOURCE_TYPE {
  PST_Default ,
  PST_Scanned ,
  PST_Camera ,
  PST_Screen ,
  PST_PDForXPS ,
  PST_SIZE
}
 Source type of the workflow helped by the profile. More...
 
enum  PROFILES_SOURCE_CONTENT {
  PSC_Default ,
  PSC_GeneralText ,
  PSC_TemplatedForm ,
  PSC_FreeForm ,
  PSC_Tables ,
  PSC_SIZE
}
 Source content of the workflow helped by the profile. More...
 

Functions

RECERR RECAPIKRN kRecUseProfile (int sid, LPCTSTR profile)
 Using the profile helping the workflow.
 

Detailed Description

Profile handling for setting the environment according to each workflow.

This module (in cooperation with Settings Manager Module) can make a workflow more optimal for a specific aim. For this, it uses profiles, which are collections of settings that can adjust the operation of the workflow optimal for the specific aim.

CSDK settings cover the entire environment for the workflow, such as the intent, source-format, processing options, and output format. Profiles make it easy to handle the thousands of settings controlling the environment for CSDK workflows, even for a programmer not familiar with the CSDK settings tree. CSDK comes with a built-in set of Profiles, each of those include high-level non-default settings relevant for a frequently used scenario. Profile settings affect the related workflow functions, adjusting the result and performance to the related scenario. Still, Profiles do not perform or process anything, but the developer is responsible for conducting the work by calling the appropriate functions, using correct parameters, and handling exceptions.

Loading a profile requires only a single call and saves the additional work attached to the use of low-level settings directly. You can load a profile into any Settings Collection, using the settings collection ID (sid). Call the following function to load a profile: kRecUseProfile.

Developers can fine-tune the CSDK workflow environment with low-level settings after loading a profile. The kRecUseProfile function resets all settings to the default, so make sure you load the Profile before customizing your workflow environment with any low-level setting or calling other CSDK API functions.

Refer to the Samples from number 77 on for details on Profile handling.

The following list contains the built-in profiles. For using them pass their name to the second argument of the function kRecUseProfile.

Enumeration Type Documentation

◆ PROFILES_INTENT

Intent of the workflow helped by the profile.

Enumerator
PI_Default 

The intent is not specified.

PI_Indexing 

Creating output for indexing.

PI_Archiving 

Creating output for archiving documents.

PI_UnstructuredText 

Focus on the text itself.

PI_TabulatedData 

Creating table output.

PI_DataExtraction 

Processing filled forms.

PI_FormatRetention 

Focus on the page layout.

PI_ContentReuse 

Creating easy to reuse document structure.

PI_EditableCopy 

Editable output with layout as similar as possible.

PI_BarcodeReading 

Reading barcodes.

PI_FormCreation 

Processing empty forms.

PI_DocClassify 

Using Document Classifier.

PI_MakePDFSearchable 

Creating searchable PDF.

PI_SIZE 

Number of intents.

◆ PROFILES_SOURCE_CONTENT

Source content of the workflow helped by the profile.

Enumerator
PSC_Default 

The source content is not specified.

PSC_GeneralText 

Text content.

PSC_TemplatedForm 

Form content with structure described by a form template.

PSC_FreeForm 

Form content with arbitrary structure.

PSC_Tables 

Table(s) on the page.

PSC_SIZE 

Number of source content.

◆ PROFILES_SOURCE_TYPE

Source type of the workflow helped by the profile.

Enumerator
PST_Default 

The source type is not specified.

PST_Scanned 

Input from scanner.

PST_Camera 

Input from digital camera.

PST_Screen 

Input from screenshot.

PST_PDForXPS 

Input from PDF or XPS file.

PST_SIZE 

Number of source types.

Function Documentation

◆ kRecUseProfile()

RECERR RECAPIKRN kRecUseProfile ( int sid,
LPCTSTR profile )

Using the profile helping the workflow.

This function applies the specified profile. A profile is a collection of settings adjusting the operation of the workflow to the selected aim.

Parameters
[in]sidSettings Collection ID.
[in]profileThe name of the profile. See the list of the built-in profiles.
Return values
RECERR
Note
This function sets all the settings to default before modifying the settings that adjust the operation of the workflow optimal to the aim. Thus this function must be called first before tunning any settings or calling any other functions of the workflow.
This function sets only the environment. It is the User, who is responsible for developing the workflow.