BCL easyConverter SDK
easyConverter SDK Usermanual
PDF-to-HTML Programming API  |  Download Free Trial  |  Contact Us to Purchase

OcrOption Property

Set the option for handling OCR-ed documents.

This property does not work when AbsolutePositioning is set to True.

Sub OcrOption(newVal As Long)


Parameters

newVal

One of optOcr values:

OPT_OCR_TEXT_IMAGE = 0,
OPT_OCR_TEXTONLY = 1,
OPT_OCR_IMAGEONLY = 2,
OPT_OCR_IMAGE_HIDDEN_TEXT = 3

Exception Handling

Please refer to the list of return exceptions.

Example Usage

oConverter = CreateObject("EasyConverter.PDF2HTML.4")

' Set option for handling OCR-ed documents
oConverter.OcrOption = OPT_OCR_IMAGE_HIDDEN_TEXT
Call oConverter.ConvertToHTML(inFileName, outFileName)