XmpCustomSchema Class
Contains properties used to define the XMP custom namespace.
Namespace: DevExpress.Docs.Pdf
Assembly: DevExpress.Docs.Pdf.v26.1.dll
Declaration
Related API Members
The following members return XmpCustomSchema objects:
Example
How to Set XMP Custom Schema Properties
The following code snippet creates a custom XMP schema with the “http://www.example.com/custom/1.0/“ namespace URI and adds custom properties to this schema:
using DevExpress.Docs.Pdf;
using System.IO;
using (PdfDocument pdfDocument =
new PdfDocument(File.OpenRead(@"document_001.pdf"))) {
XmpMetadata metadata = new XmpMetadata();
XmpCustomSchema customSchema = metadata.CustomSchema;
metadata.RegisterNamespace("http://www.example.com/custom/1.0/", "dx");
customSchema["Team"] = "Office";
customSchema["Checked"] = "true";
customSchema["Project"] = "PDF Document API";
// Embed metadata in the document:
pdfDocument.Metadata.Xmp = metadata;
}
Inheritance
Object
XmpCustomSchema
See Also