Class: LiteParse::Config
- Inherits:
-
Object
- Object
- LiteParse::Config
- Defined in:
- lib/liteparse/types.rb
Overview
The current configuration of a LiteParse parser instance.
Instance Method Summary collapse
-
#dpi ⇒ Float
Rendering DPI.
-
#max_pages ⇒ Integer
Maximum pages to parse.
-
#num_workers ⇒ Integer
Number of worker threads.
-
#ocr_enabled ⇒ Boolean
Whether OCR is enabled.
-
#ocr_language ⇒ String
Language used for OCR (e.g. “eng”).
-
#ocr_server_headers ⇒ Hash<String, String>?
Headers for OCR server requests.
-
#ocr_server_url ⇒ String?
External OCR server URL, if configured.
-
#output_format ⇒ String
Output format: “json”, “text”, or “markdown”.
-
#password ⇒ String?
Document password, if set.
-
#preserve_very_small_text ⇒ Boolean
Whether very small text is preserved.
-
#quiet ⇒ Boolean
Whether non-error output is suppressed.
-
#target_pages ⇒ String?
Page range expression, if configured.
-
#tessdata_path ⇒ String?
Path to Tesseract tessdata directory.
Instance Method Details
#max_pages ⇒ Integer
Returns Maximum pages to parse.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#num_workers ⇒ Integer
Returns Number of worker threads.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#ocr_enabled ⇒ Boolean
Returns Whether OCR is enabled.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#ocr_language ⇒ String
Returns Language used for OCR (e.g. “eng”).
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#ocr_server_headers ⇒ Hash<String, String>?
Returns Headers for OCR server requests.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#ocr_server_url ⇒ String?
Returns External OCR server URL, if configured.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#output_format ⇒ String
Returns Output format: “json”, “text”, or “markdown”.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#password ⇒ String?
Returns Document password, if set.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#preserve_very_small_text ⇒ Boolean
Returns Whether very small text is preserved.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#quiet ⇒ Boolean
Returns Whether non-error output is suppressed.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#target_pages ⇒ String?
Returns Page range expression, if configured.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |
#tessdata_path ⇒ String?
Returns Path to Tesseract tessdata directory.
103 |
# File 'lib/liteparse/types.rb', line 103 class Config; end |