Table of Contents

Class XMPUtilsImpl

Namespace
iText.Kernel.XMP.Impl
Assembly
itext.kernel.dll
public sealed class XMPUtilsImpl : XMPConst
Inheritance
XMPUtilsImpl
Inherited Members

Methods

AppendProperties(XMPMeta, XMPMeta, bool, bool, bool)

public static void AppendProperties(XMPMeta source, XMPMeta destination, bool doAllProperties, bool replaceOldValues, bool deleteEmptyValues)

Parameters

source XMPMeta

The source XMP object.

destination XMPMeta

The destination XMP object.

doAllProperties bool

Do internal properties in addition to external properties.

replaceOldValues bool

Replace the values of existing properties.

deleteEmptyValues bool

Delete destination values if source property is empty.

See Also

CatenateArrayItems(XMPMeta, string, string, string, string, bool)

public static string CatenateArrayItems(XMPMeta xmp, string schemaNS, string arrayName, string separator, string quotes, bool allowCommas)

Parameters

xmp XMPMeta

The XMP object containing the array to be catenated.

schemaNS string

The schema namespace URI for the array. Must not be null or the empty string.

arrayName string

The name of the array. May be a general path expression, must not be null or the empty string. Each item in the array must be a simple string value.

separator string

The string to be used to separate the items in the catenated string. Defaults to "; ", ASCII semicolon and space (U+003B, U+0020).

quotes string

The characters to be used as quotes around array items that contain a separator. Defaults to '"'

allowCommas bool

Option flag to control the catenation.

Returns

string

Returns the string containing the catenated array items.

See Also

RemoveProperties(XMPMeta, string, string, bool, bool)

public static void RemoveProperties(XMPMeta xmp, string schemaNS, string propName, bool doAllProperties, bool includeAliases)

Parameters

xmp XMPMeta

The XMP object containing the properties to be removed.

schemaNS string

Optional schema namespace URI for the properties to be removed.

propName string

Optional path expression for the property to be removed.

doAllProperties bool

Option flag to control the deletion: do internal properties in addition to external properties.

includeAliases bool

Option flag to control the deletion: Include aliases in the "named schema" case above.

See Also

SeparateArrayItems(XMPMeta, string, string, string, PropertyOptions, bool)

public static void SeparateArrayItems(XMPMeta xmp, string schemaNS, string arrayName, string catedStr, PropertyOptions arrayOptions, bool preserveCommas)

Parameters

xmp XMPMeta

The XMP object containing the array to be updated.

schemaNS string

The schema namespace URI for the array. Must not be null or the empty string.

arrayName string

The name of the array. May be a general path expression, must not be null or the empty string. Each item in the array must be a simple string value.

catedStr string

The string to be separated into the array items.

arrayOptions PropertyOptions

Option flags to control the separation.

preserveCommas bool

Flag if commas shall be preserved