ExtractedTable

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

NameTypeAccessDescription
row_countintReadNumber of rows, including any inferred header row.
column_countintReadNumber of columns, including empty and covered columns.
page_indexintReadGets the page index.
rowstuple[tuple[str, ...], ...]ReadGets the rows.
column_spanstuple[tuple[int, ...], ...]ReadGets the column spans.

Methods

SignatureDescription
__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) → strReturn CSV with CRLF records and standard double-quote escaping.
save_csv(destination: str | Path, delimiter: str, encoding: str, overwrite: bool) → PathSave one table atomically and return its path.

See Also