Convert a document - 'DIBHello' Code Sample (Linux)

Language:
EN
Product-Line:
FineReader Engine
Version:
12
Platform:
Linux
Type:
Knowledge Base & Support
KB-Type:
Code Samples Collection
KB-Topic:
Recognition, General, Programming Aspects, Export
Category:
Recognition, Export
Coding:
C++
Image:
image: doc_conv_icon.gif

This sample demonstrates how ABBYY FineReader Engine Linux may be used for processing of an device-independent bitmap (DIB) from memory. The main scenario, the objects and called methods remain the same as in the standard Hello sample.

Description

The procedure of recognizing and exporting an image file uses the basic objects and methods of ABBYY FineReader Engine.

Do the following:

  1. Create the Engine object using the InitializeEngine function.
  2. Call the CreateFRDocument method of the Engine object to create the FRDocument object.
  3. Call the OpenDib method of the Engine object to open the specified DIB file.
  4. Add the opened DIB file to a document. Use the AddImageDocument method of the FRDocument object.
  5. Preprocess all pages in the document with the Preprocess method of the FRDocument object.
  6. Perform the layout analysis of all pages in a document with the Analyze method of the FRDocument object.
  7. Perform recognition of all pages in the document with the Recognize method of the FRDocument object.
  8. Perform synthesis of all pages in the document with the Synthesize method of the FRDocument object.
  9. Call the Export method of the FRDocument object to save the document to a file of the specified format.
  10. Unload FineReader Engine — use the DeinitializeEngine function.

For the description of used objects and their methods and properties see the Developer's Help.


Back To:

This website uses cookies which enable you to see pages or use other functions of our websites. You can turn off such cookies in your browser’s settings. If you continue to use these pages, you consent to the use of cookies.