to_list method

On this page

to_list

Creates a list from the package.

def to_list(self):
    ...

Returns: list[GroupDocs.Metadata.Standards.Exif.TiffTag]: A list that contains all TIFF tags from the package.

Example

from groupdocs.metadata import Metadata

with Metadata("exif.jpg") as metadata:
    root = metadata.get_root_package()
    exif = getattr(root, "exif_package", None)
    if exif is not None:
        for tag in exif.to_list():
            print(f"{tag.tag_id} = {tag.value}")

See Also

On this page