RightsManagementSchema

Class represents the XMP Rights Management Schema.

public class RightsManagementSchema : XmpSchema
Public Class RightsManagementSchema
    Inherits XmpSchema

Inheritance: ObjectXmpSchemaRightsManagementSchema

Licensing Info

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to create an Rights Management Schema and Add it to the Xmp Metadata.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Xmp
     
Module MyModule
     		
    Sub Main()
     		
        ' Create a PDF Document
        Dim MyDocument As Document = New Document
     		
        ' Add blank pages to the document
        MyDocument.Pages.Add(New Page(PageSize.Letter))
        MyDocument.Pages.Add(New Page(PageSize.Letter))
     		
        ' Create an Xmp Metadata
        Dim MyXmp As XmpMetadata = New XmpMetadata
    			
        ' Rights Management Schema.
        Dim Myrm As RightsManagementSchema = New RightsManagementSchema
        Myrm.Marked2 = CopyrightStatus.PublicDomain
        Myrm.Owner.Add( "Company Name" )
        Myrm.UsageTerms.AddLang( "en-us", "Contact MyCompany" )
        MyXmp.AddSchema(Myrm)
     		
        ' Add the Xmp Metadata to the document
        MyDocument.XmpMetadata = MyXmp
     
        ' Save the PDF document
        MyDocument.Draw("C:\MyDocument.pdf")
     		
    End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.xmp;

public class Example
{
    public static void CreatePDF(string outputPath, string imagePath)
    {
        // Create a PDF Document
        Document document = new Document();

        // Add blank pages to the document
        document.Pages.Add(new Page(PageSize.Letter));
        document.Pages.Add(new Page(PageSize.Letter));

        // Create an Xmp Metadata
        XmpMetadata xmp = new XmpMetadata();

        // Rights Management Schema.
        RightsManagementSchema rm = new RightsManagementSchema();
        rm.Marked2 = CopyrightStatus.PublicDomain;
        rm.Owner.Add("Company Name");
        rm.UsageTerms.AddLang("en-us", "Contact MyCompany");
        xmp.AddSchema(rm);

        // Add the Xmp Metadata to the document
        document.XmpMetadata = xmp;

        // Save the PDF
        document.Draw(outputPath);
    }
}

Remarks

This schema includes properties related to rights management. These properties specify information regarding the legal restrictions associated with a resource.

Constructors

RightsManagementSchema()Initializes a new instance of the RightsManagementSchema class.

Properties

CertificateGets or sets the online rights management certificate.
Marked2Gets or sets the value indicating that this is a rights-managed resource.
OwnerSets the legal owner(s) of a resource.
UsageTermsSets the text instructions on how a resource can be legally used.
WebStatementSets the location of a web page describing the owner and/or rights statement for this resource.

Methods

Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also

ceTe.DynamicPDF.Xmp

In this topic