Skip to main content

RightsManagementSchema

Version: 6.0

cete.dynamicpdf.xmp.rightsmanagementschema

RightsManagementSchema​

Class represents the XMP Rights Management Schema.

public class RightsManagementSchema : XmpSchema
Public Class RightsManagementSchema
Inherits XmpSchema

Inheritance: Object → XmpSchema → RightsManagementSchema

Licensing​

This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:

  • DynamicPDF Generator for .NET Enterprise Edition
  • DynamicPDF Merger for .NET Enterprise Edition
  • DynamicPDF ReportWriter for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

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.Marked = true Myrm.Owner.Add( "DynamicPDF" ) Myrm.UsageTerms.AddLang( "en-us", "Contact ceTe Software" ) 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;

class MyClass
{static void Main(){ // 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.Marked = true; rm.Owner.Add( "DynamicPDF" ); rm.UsageTerms.AddLang( "en-us", "Contact ceTe Software" ); xmp.AddSchema( rm ); // Add the Xmp Metadata to the document document.XmpMetadata = xmp; // Save the PDF document document.Draw( @"C:\MyDocument.pdf" );}
}

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.

public RightsManagementSchema()
Public Sub New ()

Properties​

Certificate​

Gets or sets the online rights management certificate.

public Uri Certificate { get; set; }
Public Property Certificate As Uri

Property Value​

Uri

Marked​

Gets or sets the value indicating that this is a rights-managed resource.

public bool Marked { get; set; }
Public Property Marked As Boolean

Property Value​

Boolean

Owner​

Sets the legal owner(s) of a resource.

public XmpArray Owner { get; }
Public Property Owner As XmpArray

Property Value​

XmpArray

UsageTerms​

Sets the text instructions on how a resource can be legally used.

public XmpLangAltList UsageTerms { get; }
Public Property UsageTerms As XmpLangAltList

Property Value​

XmpLangAltList

WebStatement​

Sets the location of a web page describing the owner and/or rights statement for this resource.

public Uri WebStatement { get; set; }
Public Property WebStatement As Uri

Property Value​

Uri

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

See Also​

ceTe.DynamicPDF.Xmp