Optional
allowedSpecifies 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?: { visibleOptions?: ExtractTableOptionType[] | boolean; visualEditor?: { cssText?: string; emptyCellColor?: string; enableAutoScroll?: boolean; hideSelectionArea?: boolean; lineColor?: string; selectionAreaColor?: string; selectionAreaOpacity?: string } }UI customization options for the Table Extraction Panel.
Optional
visibleControls 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
visualVisual 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
cssAdditional CSS styles to apply to the visual editor
"border: 1px dashed black; background-color: yellow;"
Optional
emptyEmpty cell background color
rgba(165, 151, 151, 0.2)
Optional
enableDetermines 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
hideWhether to hide the selection area highlight
false
Optional
lineColor of the grid lines in the visual editor
"#3a87fd" (blue)
"red", "#FF0000", "rgb(255,0,0)"
Optional
selectionBackground color of the selection area
"rgba(58, 135, 253, 0.2)" (light blue)
"rgba(255,0,0,0.3)" for semi-transparent red
Optional
selectionOpacity level of the selection area (0-1)
"0.2"
Optional
extractAdvanced configuration for table extraction algorithms.
// Configure extraction precision parameters
options.tableDataExtraction = {
extractOptions: {
CoefPrecision: 0.3,
CoefTokenization: 0.1,
MinimumRowHeight: 15
}
};
Precision coefficient for cell detection (0-1)
Text tokenization sensitivity (0-1)
Minimum row spacing in pixels
Minimum column spacing in pixels
Configuration options for the Table Data Extraction panel. Defines settings for table data extraction behavior, appearance, and export capabilities.