[]
type TableDataExtractionSettings = object;
Configuration options for the Table Data Extraction panel. Defines settings for table data extraction behavior, appearance, and export capabilities.
optional allowedExportFormats: TableDataExportFormat[];
Specifies the formats available for exporting extracted table data.
['tsv', 'csv', 'json', 'xlsx', 'xml', 'html']
// Allow only CSV and JSON exports
options.tableDataExtraction = {
allowedExportFormats: ['csv', 'json']
};
Supported formats:
optional appearance: object;
UI customization options for the Table Extraction Panel.
optional visibleOptions: ExtractTableOptionType[] | boolean;
Controls visibility and ordering of extraction parameters in the options panel.
["CoefMinimumDistanceBetweenRows", "CoefMinimumDistanceBetweenCols", "MinimumRowHeight", "MinimumColWidth"]
// Show specific options in custom order
options.tableDataExtraction = {
appearance: {
visibleOptions: ['CoefPrecision', 'MinimumRowHeight']
}
};
// Hide all options
options.tableDataExtraction = {
appearance: {
visibleOptions: false
}
};
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.
optional visualEditor: object;
Visual styling options for the table extraction editor interface.
viewer.options.tableDataExtraction = {
appearance: {
visualEditor: {
lineColor: "red",
selectionAreaColor: "rgba(255,0,0,0.2)",
hideSelectionArea: false
}
}
};
optional cssText: string;
Additional CSS styles to apply to the visual editor
"border: 1px dashed black; background-color: yellow;"
optional emptyCellColor: string;
Empty cell background color
rgba(165, 151, 151, 0.2)
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
orundefined
, auto - scrolling is enabled, allowing the page to scroll automatically as the cursor approaches the edge.
If set tofalse
, auto - scrolling is disabled.
optional hideSelectionArea: boolean;
Whether to hide the selection area highlight
false
optional lineColor: string;
Color of the grid lines in the visual editor
"#3a87fd" (blue)
"red", "#FF0000", "rgb(255,0,0)"
optional selectionAreaColor: string;
Background color of the selection area
"rgba(58, 135, 253, 0.2)" (light blue)
"rgba(255,0,0,0.3)" for semi-transparent red
optional selectionAreaOpacity: string;
Opacity level of the selection area (0-1)
"0.2"
optional extractOptions: ClientTableExtractOptions;
Advanced configuration for table extraction algorithms.
// Configure extraction precision parameters
options.tableDataExtraction = {
extractOptions: {
CoefPrecision: 0.3,
CoefTokenization: 0.1,
MinimumRowHeight: 15
}
};