Class: LiteParse::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/liteparse/types.rb

Overview

The current configuration of a LiteParse parser instance.

Instance Method Summary collapse

Instance Method Details

#dpiFloat

Returns Rendering DPI.

Returns:

  • (Float)

    Rendering DPI



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#max_pagesInteger

Returns Maximum pages to parse.

Returns:

  • (Integer)

    Maximum pages to parse



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#num_workersInteger

Returns Number of worker threads.

Returns:

  • (Integer)

    Number of worker threads



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#ocr_enabledBoolean

Returns Whether OCR is enabled.

Returns:

  • (Boolean)

    Whether OCR is enabled



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#ocr_languageString

Returns Language used for OCR (e.g. “eng”).

Returns:

  • (String)

    Language used for OCR (e.g. “eng”)



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#ocr_server_headersHash<String, String>?

Returns Headers for OCR server requests.

Returns:

  • (Hash<String, String>, nil)

    Headers for OCR server requests



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#ocr_server_urlString?

Returns External OCR server URL, if configured.

Returns:

  • (String, nil)

    External OCR server URL, if configured



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#output_formatString

Returns Output format: “json”, “text”, or “markdown”.

Returns:

  • (String)

    Output format: “json”, “text”, or “markdown”



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#passwordString?

Returns Document password, if set.

Returns:

  • (String, nil)

    Document password, if set



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#preserve_very_small_textBoolean

Returns Whether very small text is preserved.

Returns:

  • (Boolean)

    Whether very small text is preserved



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#quietBoolean

Returns Whether non-error output is suppressed.

Returns:

  • (Boolean)

    Whether non-error output is suppressed



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#target_pagesString?

Returns Page range expression, if configured.

Returns:

  • (String, nil)

    Page range expression, if configured



103
# File 'lib/liteparse/types.rb', line 103

class Config; end

#tessdata_pathString?

Returns Path to Tesseract tessdata directory.

Returns:

  • (String, nil)

    Path to Tesseract tessdata directory



103
# File 'lib/liteparse/types.rb', line 103

class Config; end