ExtractedTable
Overview
ExtractedTable is a class in Aspose.PDF FOSS for Python.
An inferred table, independent of the document it came from.
This class declares 4 methods for ExtractedTable objects in Python programs.
Available methods include: __post_init__, save_csv, to_csv, to_list.
Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: column_count, column_spans, page_index, row_count, rows.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
row_count | int | Read | Number of rows, including any inferred header row. |
column_count | int | Read | Number of columns, including empty and covered columns. |
page_index | int | Read | Gets the page index. |
rows | tuple[tuple[str, ...], ...] | Read | Gets the rows. |
column_spans | tuple[tuple[int, ...], ...] | Read | Gets the column spans. |
Methods
| Signature | Description |
|---|---|
__post_init__() | Calls post_init on this ExtractedTable instance. |
to_list() → list[list[str]] | Return a fresh list of row lists without changing this snapshot. |
to_csv(delimiter: str) → str | Return CSV with CRLF records and standard double-quote escaping. |
save_csv(destination: str | Path, delimiter: str, encoding: str, overwrite: bool) → Path | Save one table atomically and return its path. |