officefileapi-devexpress-dot-pdf-dot-xmp-dot-xmpdocument-dot-add-x28-system-dot-string-system-dot-string-x29.md
Adds a node to the XMP packet.
Namespace : DevExpress.Pdf.Xmp
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public void Add(
string qualifiedName,
string value
)
Public Sub Add(
qualifiedName As String,
value As String
)
| Name | Type | Description |
|---|---|---|
| qualifiedName | String |
The node’s qualified name ( prefix:local format).
| | value | String |
The node value.
|
| Type | Description |
|---|---|
| ArgumentException |
Thrown if the prefix specified in the qualifiedName method parameter is not registered. Call the XmpDocument.RegisterNamespace method to register the namespace.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(String, String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
pdf-document-api-xmp-example/CS/XmpMetadataExamples/Program.cs#L94
// Add items with the "pdf" prefix:
document.Add("pdf:Keywords", "Invoice,Northwind,PDF,XMP");
document.Add("pdf:Producer", "Developer Express Inc.DXperience(tm)");
pdf-document-api-xmp-example/VB/XmpMetadataExamples/Program.vb#L74
' Add items with the "pdf" prefix:
document.Add("pdf:Keywords", "Invoice,Northwind,PDF,XMP")
document.Add("pdf:Producer", "Developer Express Inc.DXperience(tm)")
See Also