export method

export

Exports the metadata properties to a file.

def export(self, file_path, format, export_options):
    ...
Parameter Type Description
file_path str The full name of the output file.
format ExportFormat The format of the output file.
export_options ExportOptions Additional options to use when exporting a document.

Example

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

with Metadata("input.pdf") as metadata:
    properties = list(metadata.find_properties(lambda p: True))
    ExportManager(properties).export("export.xlsx", ExportFormat.XLSX)

export

Exports the metadata properties to a stream.

def export(self, document, format, export_options):
    ...
Parameter Type Description
document io.RawIOBase The full name of the output file.
format ExportFormat The format of the output file.
export_options ExportOptions Additional options to use when exporting a document.

Example

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

with Metadata("input.pdf") as metadata:
    properties = list(metadata.find_properties(lambda p: True))
    ExportManager(properties).export("export.xlsx", ExportFormat.XLSX)

export

Exports the metadata properties to a file.

def export(self, file_path, format):
    ...
Parameter Type Description
file_path str The full name of the output file.
format ExportFormat The format of the output file.

Example

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

with Metadata("input.pdf") as metadata:
    properties = list(metadata.find_properties(lambda p: True))
    ExportManager(properties).export("export.xlsx", ExportFormat.XLSX)

export

Exports the metadata properties to a stream.

def export(self, document, format):
    ...
Parameter Type Description
document io.RawIOBase The full name of the output file.
format ExportFormat The format of the output file.

Example

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

with Metadata("input.pdf") as metadata:
    properties = list(metadata.find_properties(lambda p: True))
    ExportManager(properties).export("export.xlsx", ExportFormat.XLSX)

See Also