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)


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

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)


253
254
255
# File 'sig/types.rbs', line 253

def append_ocr_text
  @append_ocr_text
end

#auto_adjust_dpiBoolean?

Returns the value of attribute auto_adjust_dpi.

Returns:

  • (Boolean, nil)


245
246
247
# File 'sig/types.rbs', line 245

def auto_adjust_dpi
  @auto_adjust_dpi
end

#classifyBoolean?

Returns the value of attribute classify.

Returns:

  • (Boolean, nil)


249
250
251
# File 'sig/types.rbs', line 249

def classify
  @classify
end

#extract_imagesBoolean?

Returns the value of attribute extract_images.

Returns:

  • (Boolean, nil)


241
242
243
# File 'sig/types.rbs', line 241

def extract_images
  @extract_images
end

#include_data_base64Boolean?

Returns the value of attribute include_data_base64.

Returns:

  • (Boolean, nil)


256
257
258
# File 'sig/types.rbs', line 256

def include_data_base64
  @include_data_base64
end

#include_page_rastersBoolean?

Returns the value of attribute include_page_rasters.

Returns:

  • (Boolean, nil)


250
251
252
# File 'sig/types.rbs', line 250

def include_page_rasters
  @include_page_rasters
end

#inject_placeholdersBoolean?

Returns the value of attribute inject_placeholders.

Returns:

  • (Boolean, nil)


244
245
246
# File 'sig/types.rbs', line 244

def inject_placeholders
  @inject_placeholders
end

#max_dpiInteger?

Returns the value of attribute max_dpi.

Returns:

  • (Integer, nil)


247
248
249
# File 'sig/types.rbs', line 247

def max_dpi
  @max_dpi
end

#max_image_dimensionInteger?

Returns the value of attribute max_image_dimension.

Returns:

  • (Integer, nil)


243
244
245
# File 'sig/types.rbs', line 243

def max_image_dimension
  @max_image_dimension
end

#max_images_per_pageInteger?

Returns the value of attribute max_images_per_page.

Returns:

  • (Integer, nil)


248
249
250
# File 'sig/types.rbs', line 248

def max_images_per_page
  @max_images_per_page
end

#min_dpiInteger?

Returns the value of attribute min_dpi.

Returns:

  • (Integer, nil)


246
247
248
# File 'sig/types.rbs', line 246

def min_dpi
  @min_dpi
end

#ocr_text_onlyBoolean?

Returns the value of attribute ocr_text_only.

Returns:

  • (Boolean, nil)


252
253
254
# File 'sig/types.rbs', line 252

def ocr_text_only
  @ocr_text_only
end

#output_formatImageOutputFormat?

Returns the value of attribute output_format.

Returns:



254
255
256
# File 'sig/types.rbs', line 254

def output_format
  @output_format
end

#run_ocr_on_imagesBoolean?

Returns the value of attribute run_ocr_on_images.

Returns:

  • (Boolean, nil)


251
252
253
# File 'sig/types.rbs', line 251

def run_ocr_on_images
  @run_ocr_on_images
end

#svgSvgOptions?

Returns the value of attribute svg.

Returns:



255
256
257
# File 'sig/types.rbs', line 255

def svg
  @svg
end

#target_dpiInteger?

Returns the value of attribute target_dpi.

Returns:

  • (Integer, nil)


242
243
244
# File 'sig/types.rbs', line 242

def target_dpi
  @target_dpi
end

Class Method Details

.defaultImageExtractionConfig



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

def self.default: () -> ImageExtractionConfig