ExtractedBlock

ExtractedBlock

Overview

ExtractedBlock is a class in Aspose.PDF FOSS for Python.

A detached heading, paragraph, list, table or figure in reading order.

This class declares 2 methods for ExtractedBlock objects in Python programs. Available methods include: __post_init__, to_dict. Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: alt, column_spans, image, items, kind, level, and 6 more.

Properties

NameTypeAccessDescription
page_indexintReadGets the page index.
kindstrReadGets the kind.
xfloatReadGets the x.
yfloatReadGets the y.
textstrReadGets the text.
levelintReadGets the level.
itemstuple[str, ...]ReadGets the items.
rowstuple[tuple[str, ...], ...]ReadGets the rows.
column_spanstuple[tuple[int, ...], ...]ReadGets the column spans.
orderedboolReadGets the ordered.
altstrReadGets the alt.
imagebytes | NoneReadGets the image.

Methods

SignatureDescription
__post_init__()Calls post_init on this ExtractedBlock instance.
to_dict() → dict[str, Any]Return independent JSON-ready data; PNG bytes become a data URI.

See Also