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

NameTypeAccessDescription
MetadataMetadataReadGets the metadata.

Methods

SignatureDescription
Metadata()MetadataCalls 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::stringCalls GetNamespaceUriByPrefix(prefix) on this Metadata instance.
GetPrefixByNamespaceUri(namespaceUri: std::string)std::stringCalls 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)boolCalls Contains(key) on this Metadata instance.
Remove(key: std::string)boolCalls Remove(key) on this Metadata instance.
ContainsKey(key: std::string)boolCalls ContainsKey(key) on this Metadata instance.
TryGetValue(key: std::string, value: XmpValue)boolCalls TryGetValue(key, value) on this Metadata instance.
IsFixedSize()boolReturns true if fixed size is set.
IsReadOnly()boolReturns 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)XmpValueCalls at(key) on this Metadata instance.
Count()intCalls Count on this Metadata instance.

See Also