Class: Xberg::PdfConfig

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePdfConfig

Returns a new instance of PdfConfig.

Parameters:

  • extract_images: (Boolean)
  • extract_tables: (Boolean)
  • passwords: (Array[String])
  • extract_metadata: (Boolean)
  • hierarchy: (HierarchyConfig)
  • extract_annotations: (Boolean)
  • top_margin_fraction: (Float)
  • bottom_margin_fraction: (Float)
  • allow_single_column_tables: (Boolean)
  • ocr_inline_images: (Boolean)
  • extract_form_fields: (Boolean)
  • reading_order: (Boolean)


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

def initialize: (?extract_images: bool, ?extract_tables: bool, ?passwords: Array[String], ?extract_metadata: bool, ?hierarchy: HierarchyConfig, ?extract_annotations: bool, ?top_margin_fraction: Float, ?bottom_margin_fraction: Float, ?allow_single_column_tables: bool, ?ocr_inline_images: bool, ?extract_form_fields: bool, ?reading_order: bool) -> void

Instance Attribute Details

#allow_single_column_tablesBoolean?

Returns the value of attribute allow_single_column_tables.

Returns:

  • (Boolean, nil)


391
392
393
# File 'sig/types.rbs', line 391

def allow_single_column_tables
  @allow_single_column_tables
end

#bottom_margin_fractionFloat?

Returns the value of attribute bottom_margin_fraction.

Returns:

  • (Float, nil)


390
391
392
# File 'sig/types.rbs', line 390

def bottom_margin_fraction
  @bottom_margin_fraction
end

#extract_annotationsBoolean?

Returns the value of attribute extract_annotations.

Returns:

  • (Boolean, nil)


388
389
390
# File 'sig/types.rbs', line 388

def extract_annotations
  @extract_annotations
end

#extract_form_fieldsBoolean?

Returns the value of attribute extract_form_fields.

Returns:

  • (Boolean, nil)


393
394
395
# File 'sig/types.rbs', line 393

def extract_form_fields
  @extract_form_fields
end

#extract_imagesBoolean?

Returns the value of attribute extract_images.

Returns:

  • (Boolean, nil)


383
384
385
# File 'sig/types.rbs', line 383

def extract_images
  @extract_images
end

#extract_metadataBoolean?

Returns the value of attribute extract_metadata.

Returns:

  • (Boolean, nil)


386
387
388
# File 'sig/types.rbs', line 386

def 
  @extract_metadata
end

#extract_tablesBoolean?

Returns the value of attribute extract_tables.

Returns:

  • (Boolean, nil)


384
385
386
# File 'sig/types.rbs', line 384

def extract_tables
  @extract_tables
end

#hierarchyHierarchyConfig?

Returns the value of attribute hierarchy.

Returns:



387
388
389
# File 'sig/types.rbs', line 387

def hierarchy
  @hierarchy
end

#ocr_inline_imagesBoolean?

Returns the value of attribute ocr_inline_images.

Returns:

  • (Boolean, nil)


392
393
394
# File 'sig/types.rbs', line 392

def ocr_inline_images
  @ocr_inline_images
end

#passwordsArray[String]?

Returns the value of attribute passwords.

Returns:

  • (Array[String], nil)


385
386
387
# File 'sig/types.rbs', line 385

def passwords
  @passwords
end

#reading_orderBoolean?

Returns the value of attribute reading_order.

Returns:

  • (Boolean, nil)


394
395
396
# File 'sig/types.rbs', line 394

def reading_order
  @reading_order
end

#top_margin_fractionFloat?

Returns the value of attribute top_margin_fraction.

Returns:

  • (Float, nil)


389
390
391
# File 'sig/types.rbs', line 389

def top_margin_fraction
  @top_margin_fraction
end

Class Method Details

.defaultPdfConfig

Returns:



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

def self.default: () -> PdfConfig