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 |
|
|
DOCUMENTFORMAT_EMF |
|
|
DOCUMENTFORMAT_DOC |
|
|
DOCUMENTFORMAT_PDF |
|
|
DOCUMENTFORMAT_RTF |
|
|
DOCUMENTFORMAT_TXT |
|
|
DOCUMENTFORMAT_HTM |
|
|
DOCUMENTFORMAT_XPS |
|
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 |
See Also
Functions: |
L_DocGetRecognitionResultOptions, L_DocSetRecognitionResultOptions, L_DocSaveResultsToFile, L_DocGetDocumentWriterOptions |
Topics: |
|
|
Example
For an example, refer to L_DocGetDocumentWriterOptions.