Document.XmpMetadata Property

Gets or sets the XMP metadata for the PDF document.

public XmpMetadata XmpMetadata { get; set; }
Public Property XmpMetadata As XmpMetadata

Property Value

XmpMetadata

Licensing Info

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

Examples

This example shows how to create XMP metadata and add it to the document.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
     
Module MyModule
     
    Sub Main()

	   'Create a PDF Document
        Dim document As 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
        Dim xmp As XmpMetadata = New XmpMetadata

        ' Add the Xmp Metadata to the document
        document.XmpMetadata = xmp

        ' Save the PDF document
        document.Draw(outputPath)

    End Sub
End Module
using System;
using ceTe.DynamicPDF;	
using ceTe.DynamicPDF.Xmp;

public class Example 
{
    public static void CreatePDF(string outputPath)
    {
         // 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(outputPath);
    }
}

See Also

Document
ceTe.DynamicPDF

In this topic