See Also

RightsManagementSchema Members  | ceTe.DynamicPDF.Xmp Namespace

Requirements

Namespace: ceTe.DynamicPDF.Xmp

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

Language

Visual Basic

C#

Show All

Class represents the XMP Rights Management Schema.

For a list of all members of this type, see RightsManagementSchema members.

Object Model



Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.Xmp.XmpSchema
      ceTe.DynamicPDF.Xmp.RightsManagementSchema

Syntax

[Visual Basic]
Public Class RightsManagementSchema    Inherits XmpSchema
[C#]
public class RightsManagementSchema : XmpSchema

Remarks

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

Example

This example shows how to create an Rights Management Schema and Add it to the Xmp Metadata.

[Visual Basic] 

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

[C#] 

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" ); 
    } 
}

Licensing

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

Requirements

Namespace: ceTe.DynamicPDF.Xmp

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

See Also

RightsManagementSchema Members  | ceTe.DynamicPDF.Xmp Namespace

 

 


© Copyright 2007, ceTe Software