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

XmpDocument.RightsManagementProperties Property

Gets properties used to define the XMP Rights Management namespace.

Namespace: DevExpress.Pdf.Xmp

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

NuGet Package: DevExpress.Pdf.Core

Declaration

public XmpRightsManagementProperties RightsManagementProperties { get; }

Property Value

Type Description
XmpRightsManagementProperties

An object that contains Rights Management namespace properties.

Example

The code sample below adds items from the Rights Management 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();
    XmpRightsManagementProperties rightsManagementSchema =
        metadata.RightsManagementProperties;
    rightsManagementSchema.Certificate = "https://www.devexpress.com/";
    rightsManagementSchema.Owner.Add("DevExpress");
    rightsManagementSchema.Marked = true;
    rightsManagementSchema.WebStatement = "https://www.devexpress.com/support/eulas/";
    rightsManagementSchema.UsageTerms.AddString("Copyright(C) 2021 DevExpress.All Rights Reserved.", 
        "x-default");

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

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