Skip to main content
All docs
V23.2

DublinCoreProperties Class

Contains properties used to define the Dublin Core namespace.

Namespace: DevExpress.Pdf.Xmp

Assembly: DevExpress.Pdf.v23.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

Declaration

public class DublinCoreProperties

The following members return DublinCoreProperties objects:

Remarks

The Dublin Core namespace contains information defined in the Dublin Core Metadata Set, created by the Dublin Core Metadata Initiative (DCMI). The namespace URI is http://purl.org/dc/elements/1.1/, the prefix is dc.

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");
}

Inheritance

Object
DublinCoreProperties
See Also