See Also

DublinCoreSchema 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 Dublin Core Schema.

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

Object Model











Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.Xmp.XmpSchema
      ceTe.DynamicPDF.Xmp.DublinCoreSchema

Syntax

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

Remarks

The Dublin Core schema provides a set of commonly used properties.

Example

This example shows how to create an Dublin Core 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

        ' Dublin Core Schema.
        Dim Mydc As DublinCoreSchema = MyXmp.DublinCore
        Mydc.Contributors.Add( "Abc" )
        Mydc.Contributors.Add( "Xyz" )
        Mydc.Contributors.Add( "Pqrs" )
        Mydc.Coverage = "To test all the attributes of schema's provided"
        Mydc.Creators.Add( "DynamicPDF" )
        Mydc.Creators.Add( "ceTe Software" )
        Mydc.Date.Add( DateTime.Now )
        Mydc.Description.AddLang( "en-us", "XMP Schema's test" )
        Mydc.Identifier = "First XMP pdf"
        Mydc.Publisher.Add( "DynamicPDF.com" )
        Mydc.Publisher.Add( "ceTe Software" )
        Mydc.Relation.Add( "test pdf with xmp" )
        Mydc.Rights.DefaultText = "ceTe Software Pvt. Ltd"
        Mydc.Rights.AddLang( "en-us", "All rights reserved 2006, ceTe software." )
        Mydc.Source = "XMP Project"
        Mydc.Subject.Add( "eXtensible Metadata Platform" )
        Mydc.Title.AddLang( "en-us", "XMP" )
        Mydc.Title.AddLang( "it-it", "XMP - Piattaforma Estendible di Metadata" )
        Mydc.Title.AddLang( "du-du", "De hallo Wereld" )
        Mydc.Title.AddLang( "fr-fr", "XMP - Une Platforme Extensible pour les Métédonnées" )
        Mydc.Title.AddLang( "DE-DE", "ÄËßÜ Hallo Welt" )
        Mydc.Type.Add( "Pdf file containing xmp metadata" )
        ' Note: Need not have to add Dublin Core Schema, already added internally.

        ' 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(); 
         
        // Dublin Core Schema. 
        DublinCoreSchema dc = xmp.DublinCore; 
        dc.Contributors.Add( "Abc" ); 
        dc.Contributors.Add( "Xyz" ); 
        dc.Contributors.Add( "Pqrs" ); 
        dc.Coverage = "To test all the attributes of schema's provided"; 
        dc.Creators.Add( "DynamicPDF" ); 
        dc.Creators.Add( "ceTe Software" ); 
        dc.Date.Add( DateTime.Now ); 
        dc.Description.AddLang( "en-us", "XMP Schema's test" ); 
        dc.Identifier = "First XMP pdf"; 
        dc.Publisher.Add( "DynamicPDF.com" ); 
        dc.Publisher.Add( "ceTe Software" ); 
        dc.Relation.Add( "test pdf with xmp" ); 
        dc.Rights.DefaultText = "ceTe Software Pvt. Ltd"; 
        dc.Rights.AddLang( "en-us", "All rights reserved 2006, ceTe software." ); 
        dc.Source = "XMP Project"; 
        dc.Subject.Add( "eXtensible Metadata Platform" ); 
        dc.Title.AddLang( "en-us", "XMP" ); 
        dc.Title.AddLang( "it-it", "XMP - Piattaforma Estendible di Metadata" ); 
        dc.Title.AddLang( "du-du", "De hallo Wereld" ); 
        dc.Title.AddLang( "fr-fr", "XMP - Une Platforme Extensible pour les Métédonnées" ); 
        dc.Title.AddLang( "DE-DE", "ÄËßÜ Hallo Welt" ); 
        dc.Type.Add( "Pdf file containing xmp metadata" ); 
        // Note: Need not have to add Dublin Core Schema, already added internally. 
         
        // 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

DublinCoreSchema Members  | ceTe.DynamicPDF.Xmp Namespace

 

 


© Copyright 2007, ceTe Software