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)


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

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)


436
437
438
# File 'sig/types.rbs', line 436

def allow_single_column_tables
  @allow_single_column_tables
end

#bottom_margin_fractionFloat?

Returns the value of attribute bottom_margin_fraction.

Returns:

  • (Float, nil)


435
436
437
# File 'sig/types.rbs', line 435

def bottom_margin_fraction
  @bottom_margin_fraction
end

#extract_annotationsBoolean?

Returns the value of attribute extract_annotations.

Returns:

  • (Boolean, nil)


433
434
435
# File 'sig/types.rbs', line 433

def extract_annotations
  @extract_annotations
end

#extract_form_fieldsBoolean?

Returns the value of attribute extract_form_fields.

Returns:

  • (Boolean, nil)


438
439
440
# File 'sig/types.rbs', line 438

def extract_form_fields
  @extract_form_fields
end

#extract_imagesBoolean?

Returns the value of attribute extract_images.

Returns:

  • (Boolean, nil)


428
429
430
# File 'sig/types.rbs', line 428

def extract_images
  @extract_images
end

#extract_metadataBoolean?

Returns the value of attribute extract_metadata.

Returns:

  • (Boolean, nil)


431
432
433
# File 'sig/types.rbs', line 431

def 
  @extract_metadata
end

#extract_tablesBoolean?

Returns the value of attribute extract_tables.

Returns:

  • (Boolean, nil)


429
430
431
# File 'sig/types.rbs', line 429

def extract_tables
  @extract_tables
end

#hierarchyHierarchyConfig?

Returns the value of attribute hierarchy.

Returns:



432
433
434
# File 'sig/types.rbs', line 432

def hierarchy
  @hierarchy
end

#ocr_inline_imagesBoolean?

Returns the value of attribute ocr_inline_images.

Returns:

  • (Boolean, nil)


437
438
439
# File 'sig/types.rbs', line 437

def ocr_inline_images
  @ocr_inline_images
end

#passwordsArray[String]?

Returns the value of attribute passwords.

Returns:

  • (Array[String], nil)


430
431
432
# File 'sig/types.rbs', line 430

def passwords
  @passwords
end

#reading_orderBoolean?

Returns the value of attribute reading_order.

Returns:

  • (Boolean, nil)


439
440
441
# File 'sig/types.rbs', line 439

def reading_order
  @reading_order
end

#top_margin_fractionFloat?

Returns the value of attribute top_margin_fraction.

Returns:

  • (Float, nil)


434
435
436
# File 'sig/types.rbs', line 434

def top_margin_fraction
  @top_margin_fraction
end

Class Method Details

.defaultPdfConfig

Returns:



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

def self.default: () -> PdfConfig