See Also

Document Class  | Document Members

Requirements

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

Language

Visual Basic

C#

Show All

Gets or sets the Xmp metadata for the PDF document.

[Visual Basic]
Public Overridable Property XmpMetadata As XmpMetadata
[C#]
public virtual XmpMetadata XmpMetadata {get; set;}

Example

This example shows how to create an Xmp Metadata and Add it to the document.

[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

        ' 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(); 
         
        // Add the Xmp Metadata to the document 
        document.XmpMetadata = xmp; 
         
        // Save the PDF document 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

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

Requirements

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

See Also

Document Class  | Document Members

 

 


© Copyright 2007, ceTe Software