export method
Leave feedback
On this page
Exports the collection of metadata to the stream.
def export(self, metadata, stream):
...
| Parameter | Type | Description |
|---|---|---|
| metadata | Iterable[MetadataItem] |
The collection of metadata. |
| stream | io.RawIOBase |
The output stream. |
Exports the collection of metadata to the file.
def export(self, metadata, file_name):
...
| Parameter | Type | Description |
|---|---|---|
| metadata | Iterable[MetadataItem] |
The collection of metadata. |
| file_name | str |
The full path to the output file. |
from groupdocs.parser import Parser
from groupdocs.parser.export import JsonExporter
parser = Parser(file_path)
metadata = parser.get_metadata()
JsonExporter().export(metadata, "metadata.json")
Exports the document information to the provided stream.
def export(self, document_info, stream):
...
| Parameter | Type | Description |
|---|---|---|
| document_info | IDocumentInfo |
The document information. |
| stream | io.RawIOBase |
The output stream. |
Exports the document information to the specified file.
def export(self, document_info, file_name):
...
| Parameter | Type | Description |
|---|---|---|
| document_info | IDocumentInfo |
The document information. |
| file_name | str |
The full path to the output file. |
Exports the collection of text areas to the stream.
def export(self, text_areas, stream):
...
| Parameter | Type | Description |
|---|---|---|
| text_areas | Iterable[PageTextArea] |
The collection of the text areas. |
| stream | io.RawIOBase |
The output stream. |
Exports the collection of text areas to the file.
def export(self, text_areas, file_name):
...
| Parameter | Type | Description |
|---|---|---|
| text_areas | Iterable[PageTextArea] |
The collection of text areas. |
| file_name | str |
The full path to the output file. |
Exports the collection of tables to the stream.
def export(self, tables, stream):
...
| Parameter | Type | Description |
|---|---|---|
| tables | Iterable[PageTableArea] |
The collection of tables. |
| stream | io.RawIOBase |
The output stream. |
Exports the collection of tables to the specified file.
def export(self, tables, file_name):
...
| Parameter | Type | Description |
|---|---|---|
| tables | Iterable[PageTableArea] |
The collection of tables. |
| file_name | str |
The full path to the output file. |
from groupdocs.parser.export import JsonExporter
def export_tables(tables, output_path):
exporter = JsonExporter()
exporter.export(tables, output_path)
Exports the collection of barcodes to the stream.
def export(self, barcodes, stream):
...
| Parameter | Type | Description |
|---|---|---|
| barcodes | Iterable[PageBarcodeArea] |
The collection of barcodes. |
| stream | io.RawIOBase |
The output stream. |
Exports the collection of barcodes to the file.
def export(self, barcodes, file_name):
...
| Parameter | Type | Description |
|---|---|---|
| barcodes | Iterable[PageBarcodeArea] |
The collection of barcodes. |
| file_name | str |
The full path to the output file. |
Exports document data to the provided stream.
def export(self, document_data, stream):
...
| Parameter | Type | Description |
|---|---|---|
| document_data | DocumentData |
Document data. |
| stream | io.RawIOBase |
The output stream. |
Exports document data to the file.
def export(self, document_data, file_name):
...
| Parameter | Type | Description |
|---|---|---|
| document_data | DocumentData |
Document data. |
| file_name | str |
The full path to the output file. |
- class
ExporterBase
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.