L_DocSetDocumentWriterOptions

#include "ltdoc.h"

L_LTDOC_API L_INT EXT_FUNCTION L_DocSetDocumentWriterOptions(hDoc, pOptions, uStructSize)

L_HDOC hDoc;

/* handle to the OCR document */

L_VOID * pOptions;

/* pointer to a document format structure */

L_UINT uStructSize;

/* sizeof the document format structure */

Sets the document writer options for the specified document writer format.

Parameter

Description

hDoc

Handle to the OCR document

pOptions

Void pointer to document format structure to be set. The following are structures that are used for each format

 

Format Constant

Document format structure

 

DOCUMENTFORMAT_LTD

DOCWRTLTDOPTIONS

 

DOCUMENTFORMAT_EMF

DOCWRTEMFOPTIONS

 

DOCUMENTFORMAT_DOC

DOCWRTDOCOPTIONS

 

DOCUMENTFORMAT_PDF

DOCWRTPDFOPTIONS

 

DOCUMENTFORMAT_RTF

DOCWRTRTFOPTIONS

 

DOCUMENTFORMAT_TXT

DOCWRTTXTOPTIONS

 

DOCUMENTFORMAT_HTM

DOCWRTHTMOPTIONS

 

DOCUMENTFORMAT_XPS

DOCWRTXPSOPTIONS

uStructSize

Size of the document format structure

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Sets the options for the format the document writer is to use to write results.

To specify a document writer format, fill the DocFormat member of the RESULTOPTIONS structure and pass it to the
L_DocSetRecognitionResultOptions
function.

To get options for a specific document writer format, call the L_DocGetDocumentWriterOptions function.

After setting the document format and options, call L_DocSaveResultsToFile to save the results.

Required DLLs and Libraries

LTDOC
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_DocGetRecognitionResultOptions, L_DocSetRecognitionResultOptions, L_DocSaveResultsToFile, L_DocGetDocumentWriterOptions

Topics:

Recognizing Document Pages

 

OCR Functions: Document Writer

Example

For an example, refer to L_DocGetDocumentWriterOptions.