cete.dynamicpdf.xmp.xmpwriter
XmpWriter
- Namespace: ceTe.DynamicPDF.Xmp
- Assemblies: DynamicPDF.NETFramework40.dll, DynamicPDF.NETStandard20.dll
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
- writer: DocumentWriter
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
Date
Gets the date that the resource was originally created.
public DateTime Date { get; }
Public Property Date As DateTime
Property Value
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
PdfVersion
Gets the PDF version of the PDF document.
public float PdfVersion { get; }
Public Property PdfVersion As Single
Property Value
Producer
Gets the name of the tool that created the PDF document.
public string Producer { get; }
Public Property Producer As String
Property Value
Title
Gets the document title of the resource.
public string Title { get; }
Public Property Title As String
Property Value
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
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
- urlnamespace: String
The schema namespace URI
- alias: String
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
- urlnamespace: String
The schema namespace URI
- alias: String
The preferred schema namespace prefix
- about: String
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
- val: Boolean
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
- date: DateTime
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
- writer: DocumentWriter
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
- text: String
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
- obj: Object
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
- text: String
String representing the text to convert to UTF-8 encoding.
Returns
The UTF-8 encoded text, as a byte array.