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)


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

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)


407
408
409
# File 'sig/types.rbs', line 407

def allow_single_column_tables
  @allow_single_column_tables
end

#bottom_margin_fractionFloat?

Returns the value of attribute bottom_margin_fraction.

Returns:

  • (Float, nil)


406
407
408
# File 'sig/types.rbs', line 406

def bottom_margin_fraction
  @bottom_margin_fraction
end

#extract_annotationsBoolean?

Returns the value of attribute extract_annotations.

Returns:

  • (Boolean, nil)


404
405
406
# File 'sig/types.rbs', line 404

def extract_annotations
  @extract_annotations
end

#extract_form_fieldsBoolean?

Returns the value of attribute extract_form_fields.

Returns:

  • (Boolean, nil)


409
410
411
# File 'sig/types.rbs', line 409

def extract_form_fields
  @extract_form_fields
end

#extract_imagesBoolean?

Returns the value of attribute extract_images.

Returns:

  • (Boolean, nil)


399
400
401
# File 'sig/types.rbs', line 399

def extract_images
  @extract_images
end

#extract_metadataBoolean?

Returns the value of attribute extract_metadata.

Returns:

  • (Boolean, nil)


402
403
404
# File 'sig/types.rbs', line 402

def 
  @extract_metadata
end

#extract_tablesBoolean?

Returns the value of attribute extract_tables.

Returns:

  • (Boolean, nil)


400
401
402
# File 'sig/types.rbs', line 400

def extract_tables
  @extract_tables
end

#hierarchyHierarchyConfig?

Returns the value of attribute hierarchy.

Returns:



403
404
405
# File 'sig/types.rbs', line 403

def hierarchy
  @hierarchy
end

#ocr_inline_imagesBoolean?

Returns the value of attribute ocr_inline_images.

Returns:

  • (Boolean, nil)


408
409
410
# File 'sig/types.rbs', line 408

def ocr_inline_images
  @ocr_inline_images
end

#passwordsArray[String]?

Returns the value of attribute passwords.

Returns:

  • (Array[String], nil)


401
402
403
# File 'sig/types.rbs', line 401

def passwords
  @passwords
end

#reading_orderBoolean?

Returns the value of attribute reading_order.

Returns:

  • (Boolean, nil)


410
411
412
# File 'sig/types.rbs', line 410

def reading_order
  @reading_order
end

#top_margin_fractionFloat?

Returns the value of attribute top_margin_fraction.

Returns:

  • (Float, nil)


405
406
407
# File 'sig/types.rbs', line 405

def top_margin_fraction
  @top_margin_fraction
end

Class Method Details

.defaultPdfConfig

Returns:



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

def self.default: () -> PdfConfig