PdfXmpMetadata.Add

Add(DefaultMetadataProperties, XmpValue)

Agrega valor a los metadatos XMP.

public void Add(DefaultMetadataProperties key, XmpValue value)
ParámetroTipoDescripció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)

Agrega campo de extensión a los metadatos.

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

Ver También


Add(string, XmpValue)

Agrega un nuevo elemento al objeto diccionario.

public void Add(string key, XmpValue value)
ParámetroTipoDescripción
keyStringClave del 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 diccionario.

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

Ver También


Add(KeyValuePair<string, XmpValue>)

Agrega un par con clave y valor al diccionario.

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

Ver También