Add

Add(DefaultMetadataProperties, XmpValue)

Agrega valor a los metadatos XMP.

public void Add(DefaultMetadataProperties key, XmpValue value)
ParámetroEscribeDescripción
keyDefaultMetadataPropertiesEl nombre de la clave.
valueXmpValueValor que se agregará.

Ejemplos

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

Ver también


Add(XmpPdfAExtensionObject, string, string, string)

Añade un campo de extensión a los metadatos.

public void Add(XmpPdfAExtensionObject xmpPdfAExtensionObject, string namespacePrefix, 
    string namespaceUri, string schemaDescription)
ParámetroEscribeDescripción
xmpPdfAExtensionObjectXmpPdfAExtensionObjectEl objeto de extensión pdf para agregar.
namespacePrefixStringEl prefijo de esquema.
namespaceUriStringEl espacio de nombres uri del esquema.
schemaDescriptionStringLa descripción opcional del esquema.

Ver también


Add(string, XmpValue)

Agrega un nuevo elemento al objeto del diccionario.

public void Add(string key, XmpValue value)
ParámetroEscribeDescripción
keyStringClave de nuevo elemento.
valueXmpValueValor del elemento.

Ejemplos

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

Ver también


Add(string, object)

Agrega un nuevo elemento al objeto del diccionario.

public void Add(string key, object value)
ParámetroEscribeDescripción
keyStringClave de nuevo elemento.
valueObjectValor del elemento.

Ver también


Add(KeyValuePair<string, XmpValue>)

Agrega par con clave y valor en el diccionario.

public void Add(KeyValuePair<string, XmpValue> item)
ParámetroEscribeDescripción
itemKeyValuePair`2Elemento a agregar.

Ver también