Convert a document (Linux)

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

You are new to ABBYY FineReader Engine and are looking for a way to recognize an image and export recognition results. This sample shows all the steps you need to perform to make your ABBYY SDK work for you.

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 GetEngineObject function.
  2. [optional, PDF only] Check for text layer in the image file using the IsPdfWithTextualContent method of the Engine object. If text layer exists, you can copy the file without recognition, speeding up the processing. However, note that the text layer can be irrelevant.
  3. Call the CreateFRDocumentFromImage method of the Engine object to open the image file and create the FRDocument object.
  4. [optional] Create the DocumentProcessingParams object and set the parameters of analysis, recognition, and synthesis.
  5. Call the Process method of the FRDocument object.
  6. Call the Export method of the FRDocument object to save the document into a file of the specified format.
  7. Close the FRDocument object using the Close method.
  8. Unload FineReader Engine — use the DeinitializeEngine function.


Back To: