Text Recognition and PDF/A Generation with the 'ocrservice’ Microservice

yuuvis® RAD 9.x »

The 'ocrservice' service is a microservice that generates text documents used for full-text indexing from image documents in conjunction with the text recognition software ABBYY FineReader. It can also be used to generate PDF files with hidden text, various PDF/A formats, and highly compressed PDFs.


The 'ocrservice' service with ABBYY FineReader works with settings that must be specified in the ocr-prod.yml configuration file located in the \servicemanager\config\ directory.

Example of a configuration in the ocr-prod.yml file:

    pdfa: PDFA1bBalanced.ini
    text: TextExport.ini
    numberOfCores: 1
  transferPolicy: stream

The parameters from the example have the following function:

PDF profile: format PDF/A1b
PDF profile: procedure Balanced
Text profile Default: TextExport.ini
File transfer to yuuvis® RAD rendition-plus Stream
Number of cores for ABBYY FineReader 1

If you want to file objects for long-term archiving and they are not yet available in PDF/A format, it is possible to use the service in conjunction with ABBYY FineReader to create a file in PDF/A format and save it as a new version of the object. In that case, please contact the consulting team at OPTIMAL SYSTEMS.

Integrating the Profile File

You can customize the profile or create your own profile file with additional settings and include it using the ocr-prod.yml configuration file.

Example of the integration:

    pdfa: 'file://d:/yuuvis/OCRconfig/custom_ocr.ini'
    numberOfCores: 4
  transferPolicy: 'auto'  

Example of a profile file:

Scenario = PES_Balanced
PDFAComplianceMode = PCM_Pdfa_1b


TextLanguage = German,French,English
DetectLanguage = true



Further information on settings can be found in the documentation of ABBYY FineReader.

Examples of setting areas:

[PDFExportParams] Setting parameters for exporting recognized text to PDF format
[PagePreprocessingParams]   Setting parameters for page preprocessing
[RecognizerParams] Setting recognition parameters such as language settings
[PageAnalysisParams] Setting parameters for layout analyses
[ObjectsExtractionParams] Setting parameters for the extraction of objects