ImageGear Professional DLL v17.1 for Windows Accusoft
IG_REC_document_save
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Formatted Output Functions > IG_REC_document_save

Glossary Item Box

Saves the document to the specified data file in the native Nuance format.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_document_save(
   HIG_REC_DOCUMENT hDocument,
   const LPSTR lpDataFileName
);

Arguments:

hDocument Document handle.
lpDataFileName Specifies the data file to which to save the document.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

See IG_REC_image_import.

Remarks:

The document can be opened later using the IG_REC_document_open function.

Example:

  Copy Code
AT_ERRCOUNT ErrCount = 0;
HIGEAR higImage = 0;
HIG_REC_IMAGE higRecImage = 0;
HIG_REC_DOCUMENT hRecDocument = 0;

ErrCount += IG_load_file("Image.tif", &higImage);
ErrCount += IG_REC_image_import(higImage, &higRecImage);
ErrCount += IG_REC_image_recognize(higRecImage);
ErrCount += IG_REC_document_create(NULL, &hRecDocument);
ErrCount += IG_REC_document_page_insert(hRecDocument, higRecImage, -1);
ErrCount += IG_REC_document_save(hRecDocument, "recognition_data.bin");

//...

ErrCount += IG_REC_document_close(hRecDocument);
ErrCount += IG_image_delete(higImage);

See Also

HIG_REC_DOCUMENT

©2012. Accusoft Corporation. All Rights Reserved.