PdfXmpMetadata.Add

Add(DefaultMetadataProperties, XmpValue)

Adds value to XMP metadata.

public void Add(DefaultMetadataProperties key, XmpValue value)
ParameterTypeDescription
keyDefaultMetadataPropertiesThe key name.
valueXmpValueValue which will be added.

Examples

PdfXmpMetadata xmp = new PdfXmpMetadata();
xmp.BindPdf("input.pdf");
xmp.Add(DefaultMetadataProperties.Nickname, "name1");
xmp.Save(TestSettings.GetOutputFile("XMP_AddedValue.pdf"));

See Also


Add(XmpPdfAExtensionObject, string, string, string)

Adds extension field into metadata.

public void Add(XmpPdfAExtensionObject xmpPdfAExtensionObject, string namespacePrefix, 
    string namespaceUri, string schemaDescription)
ParameterTypeDescription
xmpPdfAExtensionObjectXmpPdfAExtensionObjectThe pdf extension object to add.
namespacePrefixStringThe prefix of schema.
namespaceUriStringThe namespace uri of schema.
schemaDescriptionStringThe optional description of schema.

See Also


Add(string, XmpValue)

Adds new element to the dictionary object.

public void Add(string key, XmpValue value)
ParameterTypeDescription
keyStringKey of new element.
valueXmpValueValue of the element.

Examples

PdfXmpMetadata xmp = new PdfXmpMetadata();
xmp.BindPdf("input.pdf");
xmp.Add("xmp:Nickname", "Nickname1");

See Also


Add(string, object)

Adds new element to the dictionary object.

public void Add(string key, object value)
ParameterTypeDescription
keyStringKey of new element.
valueObjectValue of the element.

See Also


Add(KeyValuePair<string, XmpValue>)

Adds pair with key and value into the dictionary.

public void Add(KeyValuePair<string, XmpValue> item)
ParameterTypeDescription
itemKeyValuePair`2Item to be added.

See Also