L_Doc2GetDocumentWriterOptions

#include "Ltdoc2.h"

L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2GetDocumentWriterOptions(hDoc, pOptions, uStructSize)

L_HDOC2 hDoc;

/* handle to the OCR document */

L_VOID * pOptions;

/* pointer to document format structure */

L_UINT uStructSize;

/* sizeof the document format structure */

Gets options for the selected document writer format.

Parameter

Description

hDoc

Handle to the OCR document

pOptions

Void pointer to the document format structure to be set. Possible values are:

 

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

Gets 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 RESULTOPTIONS2 structure and pass it to the L_Doc2SetRecognitionResultOptions function.

To set the options for a specific document writer format, call the L_Doc2SetDocumentWriterOptions function.

After setting the document format and options, call L_Doc2SaveResultsToFile or L_Doc2SaveResultsToFile2 to save the results.

Required DLLs and Libraries

LTDOC2
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_Doc2GetRecognitionResultOptions, L_Doc2SetRecognitionResultOptions, L_Doc2SaveResultsToFile, L_Doc2SaveResultsToFile2, L_Doc2SetDocumentWriterOptions

Topics:

Recognizing Document Pages

 

OCR Functions: Document Writer

Example

For an example, refer to L_Doc2SaveResultsToFile2.