Skip to main content

DublinCoreSchema

Version: 12.0

cete.dynamicpdf.xmp.dublincoreschema

DublinCoreSchema​

Class represents the Dublin Core Schema.

public class DublinCoreSchema : XmpSchema
Public Class DublinCoreSchema
Inherits XmpSchema

Inheritance: Object → XmpSchema → DublinCoreSchema

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 Dublin Core 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 ' 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( "MyProduct" ) Mydc.Creators.Add( "MyCompany" ) Mydc.Date.Add( DateTime.Now ) Mydc.Description.AddLang( "en-us", "XMP Schema's test" ) Mydc.Identifier = "First XMP pdf" Mydc.Publisher.Add( "mydomain.com" ) Mydc.Publisher.Add( "MyCompany" ) Mydc.Relation.Add( "test pdf with xmp" ) Mydc.Rights.DefaultText = "US English" Mydc.Rights.AddLang( "en-us", "All rights reserved 2012, MyCompany." ) 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
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();

// 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("MyProduct");
dc.Creators.Add("MyCompany");
dc.Date.Add(DateTime.Now);
dc.Description.AddLang("en-us", "XMP Schema's test");
dc.Identifier = "First XMP pdf";
dc.Publisher.Add("mydomain.com");
dc.Publisher.Add("MyCompany");
dc.Relation.Add("test pdf with xmp");
dc.Rights.DefaultText = "US English";
dc.Rights.AddLang("en-us", "All rights reserved 2012, MyCompany.");
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.Draw(outputPath);
}
}

Remarks​

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

Properties​

Contributors​

Gets the XmpArray object to set the contributors of the resource(other than the author).

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

Property Value​

XmpArray

Licensing Info​

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

Coverage​

Gets or sets the coverage property representing the extent or scope of the resource.

public string Coverage { get; set; }
Public Property Coverage As String

Property Value​

String

Licensing Info​

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

Creators​

Gets the XmpArray object to set the authors of the resource(listed in order of precedence, if significant).

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

Property Value​

XmpArray

Licensing Info​

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

Date​

Gets the XmpArray object to set the Date(s) that something important happened to the resource.

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

Property Value​

XmpArray

Licensing Info​

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

Description​

Gets the XmpLangAltList to set the textual description of the content of the resource. Multiple values may be present for different languages.

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

Property Value​

XmpLangAltList

Licensing Info​

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

Identifier​

Gets or sets the unique identifier of the resource.

public string Identifier { get; set; }
Public Property Identifier As String

Property Value​

String

Licensing Info​

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

ImportKeywords​

Gets or sets a boolean value to signify the keywords to be imported from Document class. By default it is set to true.

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

Property Value​

Boolean

Licensing Info​

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

Publisher​

Gets the XmpArray object to set the publishers of the resource.

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

Property Value​

XmpArray

Licensing Info​

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

Relation​

Gets the XmpArray object to set relationships to other documents.

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

Property Value​

XmpArray

Licensing Info​

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

Rights​

Gets the XmpLangAltList object to set the informal rights statement, selected by language.

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

Property Value​

XmpLangAltList

Licensing Info​

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

Source​

Gets or sets the unique identifier of the work from which the resource was derived.

public string Source { get; set; }
Public Property Source As String

Property Value​

String

Licensing Info​

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

Subject​

Gets the XmpArray object to set the descriptive phrases or keywords that specify the topic of the content of the resource. By default the keywords set in Document class will also append along with this phrases. If not required set the ImportKeywords to false.

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

Property Value​

XmpArray

Licensing Info​

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

Title​

Gets the XmpLangAltList object to set the title of the document, or the name given to the resource.

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

Property Value​

XmpLangAltList

Licensing Info​

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

Remarks​

Typically, it will be a name by which the resource is formally known.

Type​

Gets the XmpArray object to set the document type.

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

Property Value​

XmpArray

Licensing Info​

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

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.

Licensing Info​

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

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 .

Licensing Info​

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

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.

Licensing Info​

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

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 .

Licensing Info​

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

See Also​

ceTe.DynamicPDF.Xmp