Skip to main content
A newer version of this page is available. .
All docs
V21.1
.NET Framework 4.5.2+

XmpDocument.DublinCoreProperties Property

Gets properties used to define the Dublin Core namespace.

Namespace: DevExpress.Pdf.Xmp

Assembly: DevExpress.Pdf.v21.1.Core.dll

NuGet Package: DevExpress.Pdf.Core

Declaration

public DublinCoreProperties DublinCoreProperties { get; }

Property Value

Type Description
DublinCoreProperties

An object that contains the Dublin Core namespace properties.

Example

The code sample below adds items from the Dublin Core schema to the packet:

using DevExpress.Pdf;
using DevExpress.Pdf.Xmp;
//...

using (PdfDocumentProcessor pdfDocumentProcessor = new PdfDocumentProcessor())
{
    // Load a document:
    pdfDocumentProcessor.LoadDocument("Documents//Invoice.pdf");
    PdfDocument document = pdfDocumentProcessor.Document;

    // Create a new XMP packet:
    XmpDocument metadata = new XmpDocument();

    DublinCoreProperties dublinCoreProperties = metadata.DublinCoreProperties;
    dublinCoreProperties.Creator.Add("DevExpress");
    dublinCoreProperties.Description.AddString("This document has embedded XMP metadata", "en-us");
    dublinCoreProperties.Title.AddString("Invoice", "x-default");
    dublinCoreProperties.Type.Add("PDF");
    dublinCoreProperties.Publisher.Add("PDF Document API");

    // Embed metadata in the document:
    document.SetMetadata(metadata);

    // Save the result:
    pdfDocumentProcessor.SaveDocument("Invoice_Upd.pdf");
}
See Also