XmpBasicPackage class
Leave feedback
On this page
Represents the XMP basic namespace.
The XmpBasicPackage type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the XmpBasicPackage class. |
| Method | Description |
|---|---|
| get_xmp_representation | Converts the XMP value to the XML representation. |
| set | Adds string property. |
| set_file | |
| set_string | |
| add_properties | Adds known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. (inherited from MetadataPackage) |
| add_properties_func | (inherited from MetadataPackage) |
| clear | Removes all XMP properties. (inherited from XmpPackage) |
| contains | Returns True if the package contains a metadata property with the specified name; otherwise, False. (inherited from MetadataPackage) |
| contains_file | (inherited from MetadataPackage) |
| contains_string | (inherited from MetadataPackage) |
| find_properties | Finds metadata properties that satisfy the specified predicate, searching recursively through all nested packages. (inherited from MetadataPackage) |
| find_properties_func | (inherited from MetadataPackage) |
| get | (inherited from MetadataPackage) |
| get_enumerator | Returns an enumerator that iterates through the collection. (inherited from MetadataPackage) |
| get_file | (inherited from MetadataPackage) |
| get_string | (inherited from MetadataPackage) |
| remove | Removes the property with the specified name. (inherited from XmpPackage) |
| remove_file | (inherited from XmpPackage) |
| remove_properties | Removes metadata properties satisfying the specified predicate. (inherited from MetadataPackage) |
| remove_properties_func | (inherited from MetadataPackage) |
| remove_string | (inherited from XmpPackage) |
| sanitize | Removes writable metadata properties from the package, recursively affecting all nested packages. (inherited from MetadataPackage) |
| set_properties | Sets known metadata properties satisfying the specified predicate. (inherited from MetadataPackage) |
| set_properties_func | (inherited from MetadataPackage) |
| update_properties | Updates known metadata properties that satisfy the specified predicate, recursively affecting all nested packages. (inherited from MetadataPackage) |
| update_properties_func | (inherited from MetadataPackage) |
| Property | Description |
|---|---|
| base_url | The base URL for relative URLs in the document content. If the document contains Internet links and those links are relative, they are resolved against this base URL. |
| create_date | The date and time the resource was created. |
| creator_tool | The name of the tool used to create the resource. |
| identifiers | The unordered array of text strings that unambiguously identify the resource within a given context. |
| label | The label of the resource, a word or short phrase that identifies the resource as a member of a user-defined collection. |
| metadata_date | The date and time that any metadata for this resource was last changed (the metadata date). |
| modify_date | The date and time the resource was last modified. |
| nickname | The nickname of the resource. Short informal name for the resource. |
| rating | The user-assigned rating for this file. The rating shall be -1 or in the range 0..5, where -1 indicates rejected and 0 indicates unrated. |
| thumbnails | The thumbnails of the file, which can differ in characteristics such as size or image encoding. |
| count | The number of metadata properties. (inherited from MetadataPackage) |
| keys | The collection of metadata property names. (inherited from MetadataPackage) |
| know_property_descriptors | The collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine. (inherited from MetadataPackage) |
| metadata_type | The metadata type of the package. (inherited from MetadataPackage) |
| namespace_uri | The namespace URI. (inherited from XmpPackage) |
| prefix | The XML namespace prefix. (inherited from XmpPackage) |
| property_descriptors | The collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine. (inherited from MetadataPackage) |
| xml_namespace | The XML namespace. (inherited from XmpPackage) |
| Field | Description |
|---|---|
| RATING_REJECTED | Rating rejected value. |
| RATING_MIN | Rating min value. |
| RATING_MAX | Rating max value. |
from datetime import date
from groupdocs.metadata.standards.xmp.schemes import XmpBasicPackage
# Create a new XMP Basic package and set some properties
basic = XmpBasicPackage()
basic.create_date = date.today()
basic.rating = 5
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.