DTWAIN_SetPDFOCRMode

Top  Previous  Next

The following function is available only with DTWAIN / PDF.

 

The DTWAIN_SetPDFOCRMode signals that acquisition to PDF files will contain searchable text.

 

DTWAIN_BOOL DTWAIN_SetPDFOCRMode (

DTWAIN_SOURCE

Source,

DTWAIN_BOOL

bEnable );

 

Parameters

Source

A selected TWAIN Source.

 

bEnable

If TRUE, will save searchable text to PDF files.

 

 

Return Values

The return value is TRUE if successful.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_SetPDFOCRMode function signals to DTWAIN that the PDF files that are acquired from the TWAIN Source Source will be saved with searchable text.   See the DTWAIN_SetPDFOCRConversion for more information.

 

If bEnable is TRUE, PDF files will contain searchable text.  If FALSE, this turns off the generation of searchable text within PDF files.

 

Example

 

Creating Searchable PDF files

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

DTWAIN_InitOCREngine

DTWAIN_SelectOCREngine, DTWAIN_SelectDefaultOCREngine, DTWAIN_SelectOCREngineByName