# TableDataExtractionSettings

## Content

# Type Alias: TableDataExtractionSettings

```ts
type TableDataExtractionSettings = object;
```

Configuration options for the Table Data Extraction panel.
Defines settings for table data extraction behavior, appearance, and export capabilities.

## Properties

### allowedExportFormats?

```ts
optional allowedExportFormats: TableDataExportFormat[];
```

Specifies the formats available for exporting extracted table data.

#### Default

```ts
['tsv', 'csv', 'json', 'xlsx', 'xml', 'html']
```

#### Example

```ts
// Allow only CSV and JSON exports
options.tableDataExtraction = {
    allowedExportFormats: ['csv', 'json']
};
```

#### Remarks

Supported formats:
- 'tsv': Tab-separated values
- 'csv': Comma-separated values
- 'json': JavaScript Object Notation
- 'xlsx': Microsoft Excel format
- 'xml': Extensible Markup Language
- 'html': HyperText Markup Language table

***

### appearance?

```ts
optional appearance: object;
```

UI customization options for the Table Extraction Panel.

#### visibleOptions?

```ts
optional visibleOptions: ExtractTableOptionType[] | boolean;
```

Controls visibility and ordering of extraction parameters in the options panel.

##### Default

```ts
["CoefMinimumDistanceBetweenRows", "CoefMinimumDistanceBetweenCols", "MinimumRowHeight", "MinimumColWidth"]
```

##### Examples

```javascript
// Show specific options in custom order
options.tableDataExtraction = {
    appearance: {
        visibleOptions: ['CoefPrecision', 'MinimumRowHeight']
    }
};
```

```javascript
// Hide all options
options.tableDataExtraction = {
    appearance: {
        visibleOptions: false
    }
};
```

##### Remarks

When array is provided, only listed options will be visible in the specified order.
When set to false, all options will be hidden from the UI.

#### visualEditor?

```ts
optional visualEditor: object;
```

Visual styling options for the table extraction editor interface.

##### Example

```javascript
viewer.options.tableDataExtraction = {
    appearance: {
        visualEditor: {
            lineColor: "red",
            selectionAreaColor: "rgba(255,0,0,0.2)",
            hideSelectionArea: false
        }
    }
};
```

##### visualEditor.cssText?

```ts
optional cssText: string;
```

Additional CSS styles to apply to the visual editor

###### Example

```ts
"border: 1px dashed black; background-color: yellow;"
```

##### visualEditor.emptyCellColor?

```ts
optional emptyCellColor: string;
```

Empty cell background color

###### Default

```ts
rgba(165, 151, 151, 0.2)
```

##### visualEditor.enableAutoScroll?

```ts
optional enableAutoScroll: boolean;
```

Determines whether auto - scrolling is enabled when the cursor reaches the edge of the page during table selection.
When set to `true` or`undefined`, auto - scrolling is enabled, allowing the page to scroll automatically as the cursor approaches the edge.
If set to`false`, auto - scrolling is disabled.

##### visualEditor.hideSelectionArea?

```ts
optional hideSelectionArea: boolean;
```

Whether to hide the selection area highlight

###### Default

```ts
false
```

##### visualEditor.lineColor?

```ts
optional lineColor: string;
```

Color of the grid lines in the visual editor

###### Default

```ts
"#3a87fd" (blue)
```

###### Example

```ts
"red", "#FF0000", "rgb(255,0,0)"
```

##### visualEditor.selectionAreaColor?

```ts
optional selectionAreaColor: string;
```

Background color of the selection area

###### Default

```ts
"rgba(58, 135, 253, 0.2)" (light blue)
```

###### Example

```ts
"rgba(255,0,0,0.3)" for semi-transparent red
```

##### visualEditor.selectionAreaOpacity?

```ts
optional selectionAreaOpacity: string;
```

Opacity level of the selection area (0-1)

###### Default

```ts
"0.2"
```

***

### extractOptions?

```ts
optional extractOptions: ClientTableExtractOptions;
```

Advanced configuration for table extraction algorithms.

#### Example

```ts
// Configure extraction precision parameters
options.tableDataExtraction = {
    extractOptions: {
        CoefPrecision: 0.3,
        CoefTokenization: 0.1,
        MinimumRowHeight: 15
    }
};
```
