Skip to main content

XmpWriter

Version: 7.0

cete.dynamicpdf.xmp.xmpwriter

XmpWriter​

Represents the writer for writing XMP metadata to a document.

public class XmpWriter
Public Class XmpWriter

Inheritance: Object → XmpWriter

Licensing​

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

  • DynamicPDF Generator for .NET Enterprise Edition
  • DynamicPDF Merger for .NET Enterprise Edition
  • DynamicPDF ReportWriter for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

Constructors​

XmpWriter(DocumentWriter)​

Initializes a new instance of the XmpWriter class.

public XmpWriter(DocumentWriter writer)
Public Sub New (writer As DocumentWriter)

Parameters​

DocumentWriter object to receive the metadata output.

Properties​

Author​

Gets the authors of the resource.

public string Author { get; }
Public Property Author As String

Property Value​

String

Date​

Gets the date that the resource was originally created.

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

Property Value​

DateTime

Keywords​

Gets the keywords that specify the topic of the content of the resource.

public string Keywords { get; }
Public Property Keywords As String

Property Value​

String

PdfVersion​

Gets the PDF version of the PDF document.

public float PdfVersion { get; }
Public Property PdfVersion As Single

Property Value​

Single

Producer​

Gets the name of the tool that created the PDF document.

public string Producer { get; }
Public Property Producer As String

Property Value​

String

Title​

Gets the document title of the resource.

public string Title { get; }
Public Property Title As String

Property Value​

String

TotalPages​

Gets the number of pages in the document (including any in contained documents).

public int TotalPages { get; }
Public Property TotalPages As Int32

Property Value​

Int32

Methods​

BeginDescription()​

Writes the RDF description.

public void BeginDescription()
Sub BeginDescription()

BeginDescription(String, String)​

Writes the RDF description for a given schema.

public void BeginDescription(string urlnamespace, string alias)
Sub BeginDescription(urlnamespace As String, alias As String)

Parameters​

The schema namespace URI

The preferred schema namespace prefix

BeginDescription(String, String, String)​

Writes the RDF description for a given schema.

public void BeginDescription(string urlnamespace, string alias, string about)
Sub BeginDescription(urlnamespace As String, alias As String, about As String)

Parameters​

The schema namespace URI

The preferred schema namespace prefix

The rdf attribute on the rdf description element is a required attribute that identifies the resource whose metadata this XMP describes. Must follow URI syntax and may be an empty string.

Draw(Boolean)​

Writes the boolean value to the XMP Packet.

public void Draw(bool val)
Sub Draw(val As Boolean)

Parameters​

A boolean value to be written.

Draw(DateTime)​

Writes the given date to the XMP Packet in W3C recommended date format.

public void Draw(DateTime date)
Sub Draw(date As Date)

Parameters​

A date to be written.

Draw(DocumentWriter)​

Draws the XMP contents buffer to the given DocumentWriter object.

public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)

Parameters​

DocumentWriter object to receive the XMP buffer's output.

Draw(String)​

Writes the given value to the XMP Packet.

public void Draw(string text)
Sub Draw(text As String)

Parameters​

A text to be written.

EndDescription()​

Writes the end of RDF description.

public void EndDescription()
Sub EndDescription()

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.

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 .

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.

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 .

ToUtf8(String)​

Does the UTF-8 encoding for a given string text.

public Byte[] ToUtf8(string text)
Function ToUtf8(text As String) As Byte()

Parameters​

String representing the text to convert to UTF-8 encoding.

Returns​

The UTF-8 encoded text, as a byte array.

See Also​

ceTe.DynamicPDF.Xmp