PdfXmpMetadata.Add
Contents
[
Hide
]Add(DefaultMetadataProperties, XmpValue)
Adds value to XMP metadata.
public void Add(DefaultMetadataProperties key, XmpValue value)
Parameter | Type | Description |
---|---|---|
key | DefaultMetadataProperties | The key name. |
value | XmpValue | Value 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
- enum DefaultMetadataProperties
- class XmpValue
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Add(XmpPdfAExtensionObject, string, string, string)
Adds extension field into metadata.
public void Add(XmpPdfAExtensionObject xmpPdfAExtensionObject, string namespacePrefix,
string namespaceUri, string schemaDescription)
Parameter | Type | Description |
---|---|---|
xmpPdfAExtensionObject | XmpPdfAExtensionObject | The pdf extension object to add. |
namespacePrefix | String | The prefix of schema. |
namespaceUri | String | The namespace uri of schema. |
schemaDescription | String | The optional description of schema. |
See Also
- class XmpPdfAExtensionObject
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Add(string, XmpValue)
Adds new element to the dictionary object.
public void Add(string key, XmpValue value)
Parameter | Type | Description |
---|---|---|
key | String | Key of new element. |
value | XmpValue | Value of the element. |
Examples
PdfXmpMetadata xmp = new PdfXmpMetadata();
xmp.BindPdf("input.pdf");
xmp.Add("xmp:Nickname", "Nickname1");
See Also
- class XmpValue
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Add(string, object)
Adds new element to the dictionary object.
public void Add(string key, object value)
Parameter | Type | Description |
---|---|---|
key | String | Key of new element. |
value | Object | Value of the element. |
See Also
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Add(KeyValuePair<string, XmpValue>)
Adds pair with key and value into the dictionary.
public void Add(KeyValuePair<string, XmpValue> item)
Parameter | Type | Description |
---|---|---|
item | KeyValuePair`2 | Item to be added. |
See Also
- class XmpValue
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF