ExportManager class

ExportManager class

Provides a set of methods that export metadata properties to various formats.

The ExportManager type exposes the following members:

Constructors

Constructor Description
init Initializes a new ExportManager with the given metadata properties.

Methods

Method Description
export Exports the metadata properties to a file.
export Exports the metadata properties to a stream.
export Exports the metadata properties to a file.
export Exports the metadata properties to a stream.
export_file
export_stream
export_streams
export_string

Example

from groupdocs.metadata import Metadata
from groupdocs.metadata.export import ExportManager, ExportFormat

def exporting_metadata_properties():
    with Metadata("input.pdf") as metadata:
        # Collect the whole metadata tree as a list of properties
        properties = list(metadata.find_properties(lambda p: True))

        # Export them to an Excel workbook
        ExportManager(properties).export("export.xlsx", ExportFormat.XLSX)
        print(f"Exported {len(properties)} properties to export.xlsx")

See Also