Class represents the XMP Basic Schema.
For a list of all members of this type, see BasicSchema members.
![]() ![]() ![]() ![]() |
System.Object
ceTe.DynamicPDF.Xmp.XmpSchema
ceTe.DynamicPDF.Xmp.BasicSchema
[Visual Basic]
Public Class BasicSchema
Inherits XmpSchema[C#]
public class BasicSchema : XmpSchemaThe XMP Basic Schema contains properties that provide basic descriptive information.
This example shows how to create an Basic Schema and Add it to the Xmp Metadata.
[Visual Basic]
Imports System
Imports System.IO
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
' Basic Schema.
Dim Mybs As BasicSchema = MyXmp.BasicSchema
Mybs.Advisory.Add("Date")
Mybs.Advisory.Add("Contributors")
Mybs.CreationDate = DateTime.Now
Mybs.Nickname = "xyz"
Mybs.Thumbnails.Add(106, 80, "JPEG", GetImage("C:\thumbnail.jpg"))
' Note: Need not have to add Basic 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
Private Function GetImage(ByVal filePath As String) As Byte()
Dim MyInFile As FileStream = New FileStream(filePath, FileMode.Open, FileAccess.Read)
Dim MyBinaryData(MyInFile.Length) As Byte
MyInFile.Read(MyBinaryData, 0, MyInFile.Length)
MyInFile.Close()
return MyBinaryData
End Function
End Module
[C#]
using System; |
This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:
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)
BasicSchema Members | ceTe.DynamicPDF.Xmp Namespace
© Copyright 2007, ceTe Software