File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 21
21
from textractor .entities .table import Table
22
22
from textractor .entities .query import Query
23
23
from textractor .entities .signature import Signature
24
+ from textractor .entities .layout import Layout
24
25
from textractor .exceptions import InputError
25
26
from textractor .entities .key_value import KeyValue
26
27
from textractor .entities .bbox import SpatialObject
@@ -192,6 +193,16 @@ def signatures(self) -> EntityList[Signature]:
192
193
"""
193
194
return EntityList (sum ([page .signatures for page in self .pages ], []))
194
195
196
+ @property
197
+ def layouts (self ) -> EntityList [Layout ]:
198
+ """
199
+ Returns all the :class:`Layout` objects present in the Document
200
+
201
+ :return: List of Layout objects
202
+ :rtype: EntityList[Layout]
203
+ """
204
+ return EntityList (sum ([page .layouts for page in self .pages ], []))
205
+
195
206
@property
196
207
def identity_document (self ) -> EntityList [IdentityDocument ]:
197
208
"""
You can’t perform that action at this time.
0 commit comments