XmpSchemes class

XmpSchemes class

Provides access to known XMP schemes.

The XmpSchemes type exposes the following members:

Properties

Property Description
basic_job_ticket The BasicJobTicket scheme, representing the XMP job ticket namespace.
camera_raw The Camera Raw scheme. Represents the camera raw namespace.
dublin_core The Dublin Core scheme namespace.
paged_text The PagedText scheme, representing the paged text namespace.
pdf The PDF scheme.
photoshop The Photoshop scheme namespace.
xmp_basic The XMP basic namespace scheme.
xmp_dynamic_media The XMP dynamic media scheme (the XMP dynamic media namespace).
xmp_media_management The XMP media management schema namespace.
xmp_rights_management The XMP rights management schema namespace.

Example

from groupdocs.metadata import Metadata, Constants

with Metadata(Constants.PngWithXmp) as metadata:
    root = metadata.get_root_package()
    if root and root.xmp_package:
        schemes = root.xmp_package.schemes

        if schemes.xmp_basic:
            print(schemes.xmp_basic.creator_tool)
            print(schemes.xmp_basic.create_date)
            print(schemes.xmp_basic.modify_date)
            print(schemes.xmp_basic.label)
            print(schemes.xmp_basic.nickname)

        if schemes.dublin_core:
            print(schemes.dublin_core.format)
            print(schemes.dublin_core.coverage)
            print(schemes.dublin_core.identifier)
            print(schemes.dublin_core.source)

        if schemes.photoshop:
            print(schemes.photoshop.color_mode)
            print(schemes.photoshop.icc_profile)
            print(schemes.photoshop.country)
            print(schemes.photoshop.city)
            print(schemes.photoshop.date_created)

See Also