public class

OCROptions

extends OptionsBase
java.lang.Object
   ↳ com.pdftron.pdf.OptionsBase
     ↳ com.pdftron.pdf.OCROptions

Summary

Public Constructors
OCROptions()
Constructor.
OCROptions(String json_string)
Constructor.
Public Methods
OCROptions addIgnoreZonesForPage(RectCollection regions, int page_index)
Adds a collection of ignorable regions for the given page Optional list of page areas that will be not be processed
OCROptions addLang(String lang_code)
Adds a language to the list of to be considered when procecessing this document
OCROptions addTextZonesForPage(RectCollection regions, int page_index)
Adds a collection of known text regions for the given page.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OCROptions ()

Constructor.

public OCROptions (String json_string)

Constructor.

Public Methods

public OCROptions addIgnoreZonesForPage (RectCollection regions, int page_index)

Adds a collection of ignorable regions for the given page Optional list of page areas that will be not be processed

Returns
  • this object, for call chaining

public OCROptions addLang (String lang_code)

Adds a language to the list of to be considered when procecessing this document

Returns
  • this object, for call chaining

public OCROptions addTextZonesForPage (RectCollection regions, int page_index)

Adds a collection of known text regions for the given page. This information will be used as a hint to improve OCR quality.

Returns
  • this object, for call chaining