Skip to main content
All docs
V26.1
  • XmpBasicSchema Class

    Contains properties used to define the XMP basic namespace.

    Namespace: DevExpress.Docs.Pdf

    Assembly: DevExpress.Docs.Pdf.v26.1.dll

    Declaration

    public sealed class XmpBasicSchema

    The following members return XmpBasicSchema objects:

    Example

    How to Set XMP Basic Schema Properties

    The following code snippet specifies the XMP basic schema properties.

    using DevExpress.Docs.Pdf;
    
    using (PdfDocument pdfDocument =
        new PdfDocument(File.OpenRead(@"document_001.pdf")))
    {
        XmpMetadata metadata = new XmpMetadata();
        XmpBasicSchema basicSchema = metadata.BasicSchema;
        basicSchema.Label = new XmpString("Document 001");
        basicSchema.CreatorTool = new XmpString("PDF API");
        basicSchema.CreateDate = new XmpDate(DateTime.Now);
        basicSchema.ModifyDate = new XmpDate(DateTime.Now);
        basicSchema.MetadataDate = new XmpDate(DateTime.Now);
        basicSchema.Rating = new XmpString("5");
    
        // Embed metadata in the document:
        pdfDocument.Metadata.Xmp = metadata;
    }
    

    Inheritance

    Object
    XmpBasicSchema
    See Also