.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfMetadata Class

Represents global information about the document such as the document’s title, author, and creation and modification dates.

Namespace: DevExpress.Pdf

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

Declaration

public class PdfMetadata :
    PdfObject

Remarks

Metadata in a PDF document is stored in the Extensible Metadata Platform (XMP) format.

Read Tutorial: Embed XMP Metadata in a PDF Document

Use the XmpDocument.FromString method to convert the retrieved data to an XMP packet, as shown in the example below.

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

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

    string metadata = document.Metadata.Data;
    XmpDocument xmpDocument =  XmpDocument.FromString(metadata);
}

Inheritance

Object
DevExpress.Pdf.Native.PdfDocumentItem
DevExpress.Pdf.Native.PdfObject
PdfMetadata
See Also