Exports the collection of text areas to the stream.
defexport(self,text_areas,stream):...
Parameter
Type
Description
text_areas
Iterable[PageTextArea]
The collection of the text areas.
stream
io.RawIOBase
The output stream.
export
Exports the collection of tables to the provided stream.
defexport(self,tables,stream):...
Parameter
Type
Description
tables
Iterable[PageTableArea]
The collection of tables.
stream
io.RawIOBase
The output stream.
Example
fromgroupdocs.parserimportParserfromgroupdocs.parser.exportimportJsonExporterparser=Parser("sample.docx")# Assume `get_tables` returns an iterable of Table objectstables=parser.get_tables()withopen("tables.json","wb")asout_stream:JsonExporter().export(tables,out_stream)