Class: Xberg::ImageExtractionConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImageExtractionConfig

Returns a new instance of ImageExtractionConfig.

Parameters:

  • extract_images: (Boolean)
  • target_dpi: (Integer)
  • max_image_dimension: (Integer)
  • inject_placeholders: (Boolean)
  • auto_adjust_dpi: (Boolean)
  • min_dpi: (Integer)
  • max_dpi: (Integer)
  • max_images_per_page: (Integer)
  • classify: (Boolean)
  • include_page_rasters: (Boolean)
  • run_ocr_on_images: (Boolean)
  • ocr_text_only: (Boolean)
  • append_ocr_text: (Boolean)
  • output_format: (ImageOutputFormat)
  • svg: (SvgOptions)
  • include_data_base64: (Boolean)


233
# File 'sig/types.rbs', line 233

def initialize: (?extract_images: bool, ?target_dpi: Integer, ?max_image_dimension: Integer, ?inject_placeholders: bool, ?auto_adjust_dpi: bool, ?min_dpi: Integer, ?max_dpi: Integer, ?max_images_per_page: Integer, ?classify: bool, ?include_page_rasters: bool, ?run_ocr_on_images: bool, ?ocr_text_only: bool, ?append_ocr_text: bool, ?output_format: ImageOutputFormat, ?svg: SvgOptions, ?include_data_base64: bool) -> void

Instance Attribute Details

#append_ocr_textBoolean?

Returns the value of attribute append_ocr_text.

Returns:

  • (Boolean, nil)


228
229
230
# File 'sig/types.rbs', line 228

def append_ocr_text
  @append_ocr_text
end

#auto_adjust_dpiBoolean?

Returns the value of attribute auto_adjust_dpi.

Returns:

  • (Boolean, nil)


220
221
222
# File 'sig/types.rbs', line 220

def auto_adjust_dpi
  @auto_adjust_dpi
end

#classifyBoolean?

Returns the value of attribute classify.

Returns:

  • (Boolean, nil)


224
225
226
# File 'sig/types.rbs', line 224

def classify
  @classify
end

#extract_imagesBoolean?

Returns the value of attribute extract_images.

Returns:

  • (Boolean, nil)


216
217
218
# File 'sig/types.rbs', line 216

def extract_images
  @extract_images
end

#include_data_base64Boolean?

Returns the value of attribute include_data_base64.

Returns:

  • (Boolean, nil)


231
232
233
# File 'sig/types.rbs', line 231

def include_data_base64
  @include_data_base64
end

#include_page_rastersBoolean?

Returns the value of attribute include_page_rasters.

Returns:

  • (Boolean, nil)


225
226
227
# File 'sig/types.rbs', line 225

def include_page_rasters
  @include_page_rasters
end

#inject_placeholdersBoolean?

Returns the value of attribute inject_placeholders.

Returns:

  • (Boolean, nil)


219
220
221
# File 'sig/types.rbs', line 219

def inject_placeholders
  @inject_placeholders
end

#max_dpiInteger?

Returns the value of attribute max_dpi.

Returns:

  • (Integer, nil)


222
223
224
# File 'sig/types.rbs', line 222

def max_dpi
  @max_dpi
end

#max_image_dimensionInteger?

Returns the value of attribute max_image_dimension.

Returns:

  • (Integer, nil)


218
219
220
# File 'sig/types.rbs', line 218

def max_image_dimension
  @max_image_dimension
end

#max_images_per_pageInteger?

Returns the value of attribute max_images_per_page.

Returns:

  • (Integer, nil)


223
224
225
# File 'sig/types.rbs', line 223

def max_images_per_page
  @max_images_per_page
end

#min_dpiInteger?

Returns the value of attribute min_dpi.

Returns:

  • (Integer, nil)


221
222
223
# File 'sig/types.rbs', line 221

def min_dpi
  @min_dpi
end

#ocr_text_onlyBoolean?

Returns the value of attribute ocr_text_only.

Returns:

  • (Boolean, nil)


227
228
229
# File 'sig/types.rbs', line 227

def ocr_text_only
  @ocr_text_only
end

#output_formatImageOutputFormat?

Returns the value of attribute output_format.

Returns:



229
230
231
# File 'sig/types.rbs', line 229

def output_format
  @output_format
end

#run_ocr_on_imagesBoolean?

Returns the value of attribute run_ocr_on_images.

Returns:

  • (Boolean, nil)


226
227
228
# File 'sig/types.rbs', line 226

def run_ocr_on_images
  @run_ocr_on_images
end

#svgSvgOptions?

Returns the value of attribute svg.

Returns:



230
231
232
# File 'sig/types.rbs', line 230

def svg
  @svg
end

#target_dpiInteger?

Returns the value of attribute target_dpi.

Returns:

  • (Integer, nil)


217
218
219
# File 'sig/types.rbs', line 217

def target_dpi
  @target_dpi
end

Class Method Details

.defaultImageExtractionConfig



234
# File 'sig/types.rbs', line 234

def self.default: () -> ImageExtractionConfig