Metadata
Overview
Metadata is a class in Aspose.PDF FOSS for C++.
Metadata class implements a dictionary-like interface with Add(key, value), Remove(key), and TryGetValue(key, value) for managing XMP metadata entries.
This class provides 21 methods for working with Metadata objects in C++ programs.
Available methods include: Add, Clear, Contains, ContainsKey, Count, GetNamespaceUriByPrefix, GetPrefixByNamespaceUri, IsFixedSize, IsReadOnly, Keys, Metadata, RegisterNamespaceUri, and 5 additional methods.
All public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package.
Accessor methods: Metadata.
Accessor Methods
| Name | Type | Access | Description |
|---|---|---|---|
Metadata | Metadata | Read | Gets the metadata. |
Methods
| Signature | Description |
|---|---|
Metadata() → Metadata | Calls Metadata on this Metadata instance. |
Metadata() → Metadata | |
Metadata() | |
Metadata() | |
~Metadata() | Calls ~Metadata on this Metadata instance. |
RegisterNamespaceUri(prefix: std::string, namespaceUri: std::string) | Calls RegisterNamespaceUri(prefix, namespaceUri) on this Metadata instance. |
RegisterNamespaceUri(prefix: std::string, namespaceUri: std::string, schemaDescription: std::string) | Calls RegisterNamespaceUri(prefix, namespaceUri, schemaDescription) on this Metadata instance. |
GetNamespaceUriByPrefix(prefix: std::string) → std::string | Calls GetNamespaceUriByPrefix(prefix) on this Metadata instance. |
GetPrefixByNamespaceUri(namespaceUri: std::string) → std::string | Calls GetPrefixByNamespaceUri(namespaceUri) on this Metadata instance. |
Add(key: std::string, value: XmpValue) | Calls Add(key, value) on this Metadata instance. |
Clear() | Calls Clear on this Metadata instance. |
Contains(key: std::string) → bool | Calls Contains(key) on this Metadata instance. |
Remove(key: std::string) → bool | Calls Remove(key) on this Metadata instance. |
ContainsKey(key: std::string) → bool | Calls ContainsKey(key) on this Metadata instance. |
TryGetValue(key: std::string, value: XmpValue) → bool | Calls TryGetValue(key, value) on this Metadata instance. |
IsFixedSize() → bool | Returns true if fixed size is set. |
IsReadOnly() → bool | Returns true if read only is set. |
Keys() → std::vector<std::string> | Calls Keys on this Metadata instance. |
Values() → std::vector<XmpValue> | Calls Values on this Metadata instance. |
at(key: std::string) → XmpValue | Calls at(key) on this Metadata instance. |
Count() → int | Calls Count on this Metadata instance. |