Skip to main content
Skip table of contents

IXmpMeta

IXmpMeta Public interface

Description

This class represents the set of XMP metadata as a DOM representation. It has methods to read and modify all kinds of properties, create an iterator over all properties and Serialize the metadata to a String, byte-array or ...

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.xmp
  iTextSharp.xmp.IXmpMeta[[IXmpMeta]]
  class iTextSharp.xmp.IXmpMeta interfaceStyle;
  end
  subgraph System
System.ICloneable[[ICloneable]]
  end
System.ICloneable --> iTextSharp.xmp.IXmpMeta

Members

Properties

Public properties
TypeNameMethods
stringObjectName
This correlates to the about-attribute,
returns the empty String if no name is set.
get, set
stringPacketHeaderget

Methods

Public methods
ReturnsName
voidAppendArrayItem(...)
intCountArrayItems(string schemaNs, string arrayName)
Returns the number of items in the array.
voidDeleteArrayItem(string schemaNs, string arrayName, int itemIndex)
Deletes the given XMP subtree rooted at the given array item. It is not an error if the array
item does not exist.
voidDeleteProperty(string schemaNs, string propName)
Deletes the given XMP subtree rooted at the given property. It is not an error if the
property does not exist.
voidDeleteQualifier(string schemaNs, string propName, string qualNs, string qualName)
Deletes the given XMP subtree rooted at the given qualifier. It is not an error if the
qualifier does not exist.
voidDeleteStructField(string schemaNs, string structName, string fieldNs, string fieldName)
Deletes the given XMP subtree rooted at the given struct field. It is not an error if the
field does not exist.
boolDoesArrayItemExist(string schemaNs, string arrayName, int itemIndex)
Tells if the array item exists.
boolDoesPropertyExist(string schemaNs, string propName)
Returns whether the property exists.
boolDoesQualifierExist(string schemaNs, string propName, string qualNs, string qualName)
DoesQualifierExist tells if the qualifier exists.
boolDoesStructFieldExist(string schemaNs, string structName, string fieldNs, string fieldName)
DoesStructFieldExist tells if the struct field exists.
stringDumpObject()
Renders this node and the tree unter this node in a human readable form.
IXmpPropertyGetArrayItem(string schemaNs, string arrayName, int itemIndex)
Provides access to items within an array. The index is passed as an integer, you need not
worry about the path string syntax for array items, convert a loop index to a string, etc.
IXmpPropertyGetLocalizedText(string schemaNs, string altTextName, string genericLang, string specificLang)
IXmpPropertyGetProperty(string schemaNs, string propName)
sbyte``[]GetPropertyBase64(string schemaNs, string propName)
Convenience method to retrieve the literal value of a property.
Nullable<bool>GetPropertyBoolean(string schemaNs, string propName)
These are very similar to ...
DateTimeGetPropertyCalendar(string schemaNs, string propName)
Convenience method to retrieve the literal value of a property.
IXmpDateTimeGetPropertyDate(string schemaNs, string propName)
Convenience method to retrieve the literal value of a property.
Nullable<double>GetPropertyDouble(string schemaNs, string propName)
Convenience method to retrieve the literal value of a property.
Nullable<int>GetPropertyInteger(string schemaNs, string propName)
Convenience method to retrieve the literal value of a property.
Nullable<long>GetPropertyLong(string schemaNs, string propName)
Convenience method to retrieve the literal value of a property.
stringGetPropertyString(string schemaNs, string propName)
Convenience method to retrieve the literal value of a property. Note: There is no ...
IXmpPropertyGetQualifier(string schemaNs, string propName, string qualNs, string qualName)
IXmpPropertyGetStructField(string schemaNs, string structName, string fieldNs, string fieldName)
voidInsertArrayItem(...)
Inserts an item into an array previous to the given index. The index is passed as an integer,
you need not worry about the path string syntax for array items, convert a loop index to a
string, etc. The array passed must already exist. In normal usage the selected array item is
modified. A new item is automatically appended if the index is the array size plus 1.
IXmpIteratorIterator(...)
voidNormalize(ParseOptions options)
Perform the normalization as a separate parsing step.
Normally it is done during parsing, unless the parsing option is set to ...
voidSetArrayItem(...)
Replaces an item within an array. The index is passed as an integer, you need not worry about
the path string syntax for array items, convert a loop index to a string, etc. The array
passed must already exist. In normal usage the selected array item is modified. A new item is
automatically appended if the index is the array size plus 1.
voidSetLocalizedText(...)
Modifies the value of a selected item in an alt-text array. Creates an appropriate array item
if necessary, and handles special cases for the x-default item. If the selected item is from
a match with the specific language, the value of that item is modified. If the existing value
of that item matches the existing value of the x-default item, the x-default item is also
modified. If the array only has 1 existing item (which is not x-default), an x-default item
is added with the given value. If the selected item is from a match with the generic language
and there are no other generic matches, the value of that item is modified. If the existing
value of that item matches the existing value of the x-default item, the x-default item is
also modified. If the array only has 1 existing item (which is not x-default), an x-default
item is added with the given value. If the selected item is from a partial match with the
generic language and there are other partial matches, a new item is created for the specific
language. The x-default item is not modified. If the selected item is from the last 2 rules
then a new item is created for the specific language. If the array only had an x-default
item, the x-default item is also modified. If the array was empty, items are created for the
specific language and x-default. Note: In a future version of this API a method
using Java ...
voidSetProperty(...)
voidSetPropertyBase64(...)
Convenience method to set a property from a binary ...
voidSetPropertyBoolean(...)
Convenience method to set a property to a literal ...
voidSetPropertyCalendar(...)
Convenience method to set a property with a Java Calendar-object,
which is serialized to an ISO8601 date.
voidSetPropertyDate(...)
Convenience method to set a property with an XMPDateTime-object,
which is serialized to an ISO8601 date.
voidSetPropertyDouble(...)
Convenience method to set a property to a literal ...
voidSetPropertyInteger(...)
Convenience method to set a property to a literal ...
voidSetPropertyLong(...)
Convenience method to set a property to a literal ...
voidSetQualifier(...)
Provides access to a qualifier attached to a property. The namespace for the qualifier is
passed as a URI, you need not worry about the path string syntax. In many regards qualifiers
are like struct fields. See the introductory discussion of qualified properties for more
information. The names of qualifiers should be XML qualified names, that is within an XML
namespace. The path syntax for a qualified name uses the namespace prefix, which is
unreliable because the prefix is never guaranteed. The URI is the formal name, the prefix is
just a local shorthand in a given sequence of XML text. The property the qualifier
will be attached has to exist.
voidSetStructField(...)
Provides access to fields within a nested structure. The namespace for the field is passed as
a URI, you need not worry about the path string syntax. The names of fields should be XML
qualified names, that is within an XML namespace. The path syntax for a qualified name uses
the namespace prefix, which is unreliable because the prefix is never guaranteed. The URI is
the formal name, the prefix is just a local shorthand in a given sequence of XML text.
voidSort()

Details

Summary

This class represents the set of XMP metadata as a DOM representation. It has methods to read and modify all kinds of properties, create an iterator over all properties and Serialize the metadata to a String, byte-array or

OutputStream

Inheritance

  • ICloneable

Methods

GetProperty
public IXmpProperty GetProperty(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
GetArrayItem
public IXmpProperty GetArrayItem(string schemaNs, string arrayName, int itemIndex)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the array. Has the same usage as in GetProperty.
stringarrayNameThe name of the array. May be a general path expression, must not be ...
intitemIndexThe index of the desired item. Arrays in XMP are indexed from 1. The
constant always refers to the last existing array
item.
Summary

Provides access to items within an array. The index is passed as an integer, you need not worry about the path string syntax for array items, convert a loop index to a string, etc.

Returns

Returns a

XMPProperty

containing the value and the options or

null
Exceptions
NameDescription
XmpExceptionWraps all errors and exceptions that may occur.
CountArrayItems
public int CountArrayItems(string schemaNs, string arrayName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the array. Has the same usage as in GetProperty.
stringarrayNameThe name of the array. May be a general path expression, must not be ...
Summary

Returns the number of items in the array.

Returns

Returns the number of items in the array.

Exceptions
NameDescription
XmpExceptionWraps all errors and exceptions that may occur.
GetStructField
public IXmpProperty GetStructField(string schemaNs, string structName, string fieldNs, string fieldName)
Arguments
TypeNameDescription
stringschemaNs
stringstructName
stringfieldNs
stringfieldName
GetQualifier
public IXmpProperty GetQualifier(string schemaNs, string propName, string qualNs, string qualName)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
stringqualNs
stringqualName
SetProperty [1/2]
public void SetProperty(string schemaNs, string propName, object propValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
objectpropValue
PropertyOptionsoptions
SetProperty [2/2]
public void SetProperty(string schemaNs, string propName, object propValue)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
objectpropValue
SetArrayItem [1/2]
public void SetArrayItem(string schemaNs, string arrayName, int itemIndex, string itemValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the array. Has the same usage as in GetProperty.
stringarrayNameThe name of the array. May be a general path expression, must not be ...
intitemIndexThe index of the desired item. Arrays in XMP are indexed from 1. To address
the last existing item, use to find
out the length of the array.
stringitemValuethe new value of the array item. Has the same usage as propValue in ...
PropertyOptionsoptionsthe set options for the item.
Summary

Replaces an item within an array. The index is passed as an integer, you need not worry about the path string syntax for array items, convert a loop index to a string, etc. The array passed must already exist. In normal usage the selected array item is modified. A new item is automatically appended if the index is the array size plus 1.

Exceptions
NameDescription
XmpExceptionWraps all errors and exceptions that may occur.
SetArrayItem [2/2]
public void SetArrayItem(string schemaNs, string arrayName, int itemIndex, string itemValue)
Arguments
TypeNameDescription
stringschemaNs
stringarrayName
intitemIndex
stringitemValue
InsertArrayItem [1/2]
public void InsertArrayItem(string schemaNs, string arrayName, int itemIndex, string itemValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the array. Has the same usage as in GetProperty.
stringarrayNameThe name of the array. May be a general path expression, must not be ...
intitemIndexThe index to insert the new item. Arrays in XMP are indexed from 1. Use ...
stringitemValuethe new value of the array item. Has the same usage as
propValue in ...
PropertyOptionsoptionsthe set options that decide about the kind of the node.
Summary

Inserts an item into an array previous to the given index. The index is passed as an integer, you need not worry about the path string syntax for array items, convert a loop index to a string, etc. The array passed must already exist. In normal usage the selected array item is modified. A new item is automatically appended if the index is the array size plus 1.

Exceptions
NameDescription
XmpExceptionWraps all errors and exceptions that may occur.
InsertArrayItem [2/2]
public void InsertArrayItem(string schemaNs, string arrayName, int itemIndex, string itemValue)
Arguments
TypeNameDescription
stringschemaNs
stringarrayName
intitemIndex
stringitemValue
AppendArrayItem [1/2]
public void AppendArrayItem(string schemaNs, string arrayName, PropertyOptions arrayOptions, string itemValue, PropertyOptions itemOptions)
Arguments
TypeNameDescription
stringschemaNs
stringarrayName
PropertyOptionsarrayOptions
stringitemValue
PropertyOptionsitemOptions
AppendArrayItem [2/2]
public void AppendArrayItem(string schemaNs, string arrayName, string itemValue)
Arguments
TypeNameDescription
stringschemaNs
stringarrayName
stringitemValue
SetStructField [1/2]
public void SetStructField(string schemaNs, string structName, string fieldNs, string fieldName, string fieldValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the struct. Has the same usage as in GetProperty.
stringstructNameThe name of the struct. May be a general path expression, must not be null
or the empty string. Has the same namespace prefix usage as propName in GetProperty.
stringfieldNsThe namespace URI for the field. Has the same URI and prefix usage as the
schemaNs parameter.
stringfieldNameThe name of the field. Must be a single XML name, must not be null or the
empty string. Has the same namespace prefix usage as the structName parameter.
stringfieldValuethe value of thefield, if the field has a value.
Has the same usage as propValue in GetProperty.
PropertyOptionsoptionsOption flags describing the field. See the earlier description.
Summary

Provides access to fields within a nested structure. The namespace for the field is passed as a URI, you need not worry about the path string syntax. The names of fields should be XML qualified names, that is within an XML namespace. The path syntax for a qualified name uses the namespace prefix, which is unreliable because the prefix is never guaranteed. The URI is the formal name, the prefix is just a local shorthand in a given sequence of XML text.

Exceptions
NameDescription
XmpExceptionWraps all errors and exceptions that may occur.
SetStructField [2/2]
public void SetStructField(string schemaNs, string structName, string fieldNs, string fieldName, string fieldValue)
Arguments
TypeNameDescription
stringschemaNs
stringstructName
stringfieldNs
stringfieldName
stringfieldValue
SetQualifier [1/2]
public void SetQualifier(string schemaNs, string propName, string qualNs, string qualName, string qualValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the struct. Has the same usage as in GetProperty.
stringpropNameThe name of the property to which the qualifier is attached. Has the same
usage as in GetProperty.
stringqualNsThe namespace URI for the qualifier. Has the same URI and prefix usage as the
schemaNs parameter.
stringqualNameThe name of the qualifier. Must be a single XML name, must not be ...
stringqualValueA pointer to the ...
PropertyOptionsoptionsOption flags describing the qualifier. See the earlier description.
Summary

Provides access to a qualifier attached to a property. The namespace for the qualifier is passed as a URI, you need not worry about the path string syntax. In many regards qualifiers are like struct fields. See the introductory discussion of qualified properties for more information. The names of qualifiers should be XML qualified names, that is within an XML namespace. The path syntax for a qualified name uses the namespace prefix, which is unreliable because the prefix is never guaranteed. The URI is the formal name, the prefix is just a local shorthand in a given sequence of XML text. The property the qualifier will be attached has to exist.

Exceptions
NameDescription
XmpExceptionWraps all errors and exceptions that may occur.
SetQualifier [2/2]
public void SetQualifier(string schemaNs, string propName, string qualNs, string qualName, string qualValue)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
stringqualNs
stringqualName
stringqualValue
DeleteProperty
public void DeleteProperty(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property. Has the same usage as in GetProperty.
Summary

Deletes the given XMP subtree rooted at the given property. It is not an error if the property does not exist.

DeleteArrayItem
public void DeleteArrayItem(string schemaNs, string arrayName, int itemIndex)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the array. Has the same usage as in GetProperty.
stringarrayNameThe name of the array. May be a general path expression, must not be ...
intitemIndexThe index of the desired item. Arrays in XMP are indexed from 1. The
constant ...
Summary

Deletes the given XMP subtree rooted at the given array item. It is not an error if the array item does not exist.

DeleteStructField
public void DeleteStructField(string schemaNs, string structName, string fieldNs, string fieldName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the struct. Has the same usage as in ...
stringstructNameThe name of the struct. May be a general path expression, must not be ...
stringfieldNsThe namespace URI for the field. Has the same URI and prefix usage as the
schemaNs parameter.
stringfieldNameThe name of the field. Must be a single XML name, must not be ...
Summary

Deletes the given XMP subtree rooted at the given struct field. It is not an error if the field does not exist.

DeleteQualifier
public void DeleteQualifier(string schemaNs, string propName, string qualNs, string qualName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the struct. Has the same usage as in ...
stringpropNameThe name of the property to which the qualifier is attached. Has the same
usage as in GetProperty.
stringqualNsThe namespace URI for the qualifier. Has the same URI and prefix usage as the
schemaNs parameter.
stringqualNameThe name of the qualifier. Must be a single XML name, must not be ...
Summary

Deletes the given XMP subtree rooted at the given qualifier. It is not an error if the qualifier does not exist.

DoesPropertyExist
public bool DoesPropertyExist(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
Summary

Returns whether the property exists.

Returns

Returns true if the property exists.

DoesArrayItemExist
public bool DoesArrayItemExist(string schemaNs, string arrayName, int itemIndex)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the array. Has the same usage as in ...
stringarrayNameThe name of the array. May be a general path expression, must not be ...
intitemIndexThe index of the desired item. Arrays in XMP are indexed from 1. The
constant ...
Summary

Tells if the array item exists.

Returns

Returns

true

if the array exists,

false
DoesStructFieldExist
public bool DoesStructFieldExist(string schemaNs, string structName, string fieldNs, string fieldName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the struct. Has the same usage as in ...
stringstructNameThe name of the struct. May be a general path expression, must not be ...
stringfieldNsThe namespace URI for the field. Has the same URI and prefix usage as the
schemaNs parameter.
stringfieldNameThe name of the field. Must be a single XML name, must not be ...
Summary

DoesStructFieldExist tells if the struct field exists.

Returns

Returns true if the field exists.

DoesQualifierExist
public bool DoesQualifierExist(string schemaNs, string propName, string qualNs, string qualName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the struct. Has the same usage as in ...
stringpropNameThe name of the property to which the qualifier is attached. Has the same
usage as in ...
stringqualNsThe namespace URI for the qualifier. Has the same URI and prefix usage as the
schemaNs parameter.
stringqualNameThe name of the qualifier. Must be a single XML name, must not be ...
Summary

DoesQualifierExist tells if the qualifier exists.

Returns

Returns true if the qualifier exists.

GetLocalizedText
public IXmpProperty GetLocalizedText(string schemaNs, string altTextName, string genericLang, string specificLang)
Arguments
TypeNameDescription
stringschemaNs
stringaltTextName
stringgenericLang
stringspecificLang
SetLocalizedText [1/2]
public void SetLocalizedText(string schemaNs, string altTextName, string genericLang, string specificLang, string itemValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the alt-text array. Has the same usage as in ...
stringaltTextNameThe name of the alt-text array. May be a general path expression, must not
be ...
stringgenericLangThe name of the generic language as an RFC 3066 primary subtag. May be ...
stringspecificLangThe name of the specific language as an RFC 3066 tag. Must not be ...
stringitemValueA pointer to the ...
PropertyOptionsoptionsOption flags, none are defined at present.
Summary

Modifies the value of a selected item in an alt-text array. Creates an appropriate array item if necessary, and handles special cases for the x-default item. If the selected item is from a match with the specific language, the value of that item is modified. If the existing value of that item matches the existing value of the x-default item, the x-default item is also modified. If the array only has 1 existing item (which is not x-default), an x-default item is added with the given value. If the selected item is from a match with the generic language and there are no other generic matches, the value of that item is modified. If the existing value of that item matches the existing value of the x-default item, the x-default item is also modified. If the array only has 1 existing item (which is not x-default), an x-default item is added with the given value. If the selected item is from a partial match with the generic language and there are other partial matches, a new item is created for the specific language. The x-default item is not modified. If the selected item is from the last 2 rules then a new item is created for the specific language. If the array only had an x-default item, the x-default item is also modified. If the array was empty, items are created for the specific language and x-default. Note: In a future version of this API a method using Java

java.lang.Locale
Exceptions
NameDescription
XmpExceptionWraps all errors and exceptions that may occur.
SetLocalizedText [2/2]
public void SetLocalizedText(string schemaNs, string altTextName, string genericLang, string specificLang, string itemValue)
Arguments
TypeNameDescription
stringschemaNs
stringaltTextName
stringgenericLang
stringspecificLang
stringitemValue
GetPropertyBoolean
public Nullable<bool> GetPropertyBoolean(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
Summary

These are very similar to

GetProperty()

and

SetProperty()

above, but the value is returned or provided in a literal form instead of as a UTF-8 string. The path composition functions in

XMPPathFactory
Returns

Returns a

Boolean

value or

null
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur,
especially conversion errors.
GetPropertyInteger
public Nullable<int> GetPropertyInteger(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
Summary

Convenience method to retrieve the literal value of a property.

Returns

Returns an

Integer

value or

null
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur,
especially conversion errors.
GetPropertyLong
public Nullable<long> GetPropertyLong(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
Summary

Convenience method to retrieve the literal value of a property.

Returns

Returns a

Long

value or

null
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur,
especially conversion errors.
GetPropertyDouble
public Nullable<double> GetPropertyDouble(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
Summary

Convenience method to retrieve the literal value of a property.

Returns

Returns a

Double

value or

null
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur,
especially conversion errors.
GetPropertyDate
public IXmpDateTime GetPropertyDate(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
Summary

Convenience method to retrieve the literal value of a property.

Returns

Returns a

XMPDateTime

-object or

null
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur,
especially conversion errors.
GetPropertyCalendar
public DateTime GetPropertyCalendar(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
Summary

Convenience method to retrieve the literal value of a property.

Returns

Returns a Java

Calendar

-object or

null
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur,
especially conversion errors.
GetPropertyBase64
public sbyte GetPropertyBase64(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
Summary

Convenience method to retrieve the literal value of a property.

Returns

Returns a

byte[]

-array contained the decoded base64 value or

null
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur,
especially conversion errors.
GetPropertyString
public string GetPropertyString(string schemaNs, string propName)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
Summary

Convenience method to retrieve the literal value of a property. Note: There is no

SetPropertyString()

, because

SetProperty()
Returns

Returns a

String

value or

null
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur,
especially conversion errors.
SetPropertyBoolean [1/2]
public void SetPropertyBoolean(string schemaNs, string propName, bool propValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
boolpropValuethe literal property value as ...
PropertyOptionsoptionsoptions of the property to set (optional).
Summary

Convenience method to set a property to a literal

boolean
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur.
SetPropertyBoolean [2/2]
public void SetPropertyBoolean(string schemaNs, string propName, bool propValue)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
boolpropValue
SetPropertyInteger [1/2]
public void SetPropertyInteger(string schemaNs, string propName, int propValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
intpropValuethe literal property value as ...
PropertyOptionsoptionsoptions of the property to set (optional).
Summary

Convenience method to set a property to a literal

int
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur.
SetPropertyInteger [2/2]
public void SetPropertyInteger(string schemaNs, string propName, int propValue)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
intpropValue
SetPropertyLong [1/2]
public void SetPropertyLong(string schemaNs, string propName, long propValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
longpropValuethe literal property value as ...
PropertyOptionsoptionsoptions of the property to set (optional).
Summary

Convenience method to set a property to a literal

long
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur.
SetPropertyLong [2/2]
public void SetPropertyLong(string schemaNs, string propName, long propValue)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
longpropValue
SetPropertyDouble [1/2]
public void SetPropertyDouble(string schemaNs, string propName, double propValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
doublepropValuethe literal property value as ...
PropertyOptionsoptionsoptions of the property to set (optional).
Summary

Convenience method to set a property to a literal

double
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur.
SetPropertyDouble [2/2]
public void SetPropertyDouble(string schemaNs, string propName, double propValue)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
doublepropValue
SetPropertyDate [1/2]
public void SetPropertyDate(string schemaNs, string propName, IXmpDateTime propValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
IXmpDateTimepropValuethe property value as ...
PropertyOptionsoptionsoptions of the property to set (optional).
Summary

Convenience method to set a property with an XMPDateTime-object, which is serialized to an ISO8601 date.

Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur.
SetPropertyDate [2/2]
public void SetPropertyDate(string schemaNs, string propName, IXmpDateTime propValue)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
IXmpDateTimepropValue
SetPropertyCalendar [1/2]
public void SetPropertyCalendar(string schemaNs, string propName, DateTime propValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
DateTimepropValuethe property value as Java ...
PropertyOptionsoptionsoptions of the property to set (optional).
Summary

Convenience method to set a property with a Java Calendar-object, which is serialized to an ISO8601 date.

Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur.
SetPropertyCalendar [2/2]
public void SetPropertyCalendar(string schemaNs, string propName, DateTime propValue)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
DateTimepropValue
SetPropertyBase64 [1/2]
public void SetPropertyBase64(string schemaNs, string propName, sbyte[] propValue, PropertyOptions options)
Arguments
TypeNameDescription
stringschemaNsThe namespace URI for the property. Has the same usage as in ...
stringpropNameThe name of the property.
Has the same usage as in ...
sbyte``[]propValuethe literal property value as byte array.
PropertyOptionsoptionsoptions of the property to set (optional).
Summary

Convenience method to set a property from a binary

byte[]
Exceptions
NameDescription
XmpExceptionWraps all exceptions that may occur.
SetPropertyBase64 [2/2]
public void SetPropertyBase64(string schemaNs, string propName, sbyte[] propValue)
Arguments
TypeNameDescription
stringschemaNs
stringpropName
sbyte``[]propValue
Iterator [1/3]
public IXmpIterator Iterator()
Iterator [2/3]
public IXmpIterator Iterator(IteratorOptions options)
Arguments
TypeNameDescription
IteratorOptionsoptions
Iterator [3/3]
public IXmpIterator Iterator(string schemaNs, string propName, IteratorOptions options)
Arguments
TypeNameDescription
stringschemaNsOptional schema namespace URI to restrict the iteration. Omitted (visit all
schema) by passing ...
stringpropNameOptional property name to restrict the iteration. May be an arbitrary path
expression. Omitted (visit all properties) by passing ...
IteratorOptionsoptionsOption flags to control the iteration. See for
details.
Summary

Construct an iterator for the properties within an XMP object. According to the parameters it iterates the entire data tree, properties within a specific schema, or a subtree rooted at a specific node.

Returns

Returns an

XMPIterator

for this

XMPMeta
Exceptions
NameDescription
XmpExceptionWraps all errors and exceptions that may occur.
Sort
public void Sort()
Normalize
public void Normalize(ParseOptions options)
Arguments
TypeNameDescription
ParseOptionsoptionsoptional parsing options.
Summary

Perform the normalization as a separate parsing step. Normally it is done during parsing, unless the parsing option is set to

true

. Note: It does no harm to call this method to an already normalized xmp object. It was a PDF/A requirement to get hand on the unnormalized

XMPMeta
Exceptions
NameDescription
XmpExceptionWraps all errors and exceptions that may occur.
DumpObject
public string DumpObject()
Summary

Renders this node and the tree unter this node in a human readable form.

Returns

Returns a multiline string containing the dump.

Properties

ObjectName
public string ObjectName { get; set; }
Summary

This correlates to the about-attribute, returns the empty String if no name is set.

PacketHeader
public string PacketHeader { get; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.