PdfXmpMetadata.Add
Contenido
[
Ocultar
]Add(DefaultMetadataProperties, XmpValue)
Agrega valor a los metadatos XMP.
public void Add(DefaultMetadataProperties key, XmpValue value)
| Parámetro | Tipo | Descripción |
|---|---|---|
| key | DefaultMetadataProperties | El nombre de la clave. |
| value | XmpValue | Valor 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
- enum DefaultMetadataProperties
- class XmpValue
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
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ámetro | Tipo | Descripción |
|---|---|---|
| xmpPdfAExtensionObject | XmpPdfAExtensionObject | El objeto de extensión pdf a agregar. |
| namespacePrefix | String | El prefijo del esquema. |
| namespaceUri | String | La URI del espacio de nombres del esquema. |
| schemaDescription | String | La descripción opcional del esquema. |
Ver También
- class XmpPdfAExtensionObject
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Add(string, XmpValue)
Agrega un nuevo elemento al objeto diccionario.
public void Add(string key, XmpValue value)
| Parámetro | Tipo | Descripción |
|---|---|---|
| key | String | Clave del nuevo elemento. |
| value | XmpValue | Valor del elemento. |
Ejemplos
PdfXmpMetadata xmp = new PdfXmpMetadata();
xmp.BindPdf("input.pdf");
xmp.Add("xmp:Nickname", "Nickname1");
Ver También
- class XmpValue
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Add(string, object)
Agrega un nuevo elemento al objeto diccionario.
public void Add(string key, object value)
| Parámetro | Tipo | Descripción |
|---|---|---|
| key | String | Clave del nuevo elemento. |
| value | Object | Valor del elemento. |
Ver También
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Add(KeyValuePair<string, XmpValue>)
Agrega un par con clave y valor al diccionario.
public void Add(KeyValuePair<string, XmpValue> item)
| Parámetro | Tipo | Descripción |
|---|---|---|
| item | KeyValuePair`2 | Elemento a agregar. |
Ver También
- class XmpValue
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF