|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.xmp.XmpWriter
public class XmpWriter
Class represents the writer for XMP metadata for a document.
Licensing:
This class is a DynamicPDF Generator Enterprise Edition
feature. One of the following licenses is required for non-evaluation usage:
Constructor Summary | |
---|---|
XmpWriter(DocumentWriter writer)
Initializes a new instance of the XmpWriter class. |
Method Summary | |
---|---|
void |
beginDescription()
Writes the RDF description. |
void |
beginDescription(java.lang.String namespace,
java.lang.String alias)
Writes the RDF description for a given schema. |
void |
beginDescription(java.lang.String namespace,
java.lang.String alias,
java.lang.String about)
Writes the RDF description for a given schema. |
void |
draw(boolean val)
Writes the boolean value to XMP Packet. |
void |
draw(java.util.Date date)
Writes the given date to XMP Packet in W3C recommended date format. |
void |
draw(DocumentWriter writer)
Draws the XMP contents buffer to the given DocumentWriter
object. |
void |
draw(java.lang.String value)
Writes the given value to XMP Packet. |
void |
endDescription()
Writes the end of RDF description. |
java.lang.String |
getAuthor()
Gets the authors of the resource. |
java.util.Date |
getDate()
Gets the date of the resource was originally created. |
java.lang.String |
getKeywords()
Gets the keywords that specify the topic of the content of the resource. |
float |
getPdfVersion()
Gets the pdf version of a document. |
java.lang.String |
getProducer()
Gets the name of the tool that created the PDF document. |
java.lang.String |
getTitle()
Gets the document title of the resource. |
int |
getTotalPages()
Gets the number of pages in the document (including any in contained documents). |
byte[] |
getUtf8(java.lang.String value)
Does the UTF-8 encoding for a given string text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmpWriter(DocumentWriter writer)
XmpWriter
class.
writer
- DocumentWriter
object to receive the metadata output.DocumentWriter
Method Detail |
---|
public java.lang.String getProducer()
Gets the name of the tool that created the PDF document.
public java.lang.String getAuthor()
Gets the authors of the resource.
public java.lang.String getTitle()
Gets the document title of the resource.
public java.lang.String getKeywords()
Gets the keywords that specify the topic of the content of the resource.
public float getPdfVersion()
Gets the pdf version of a document.
public java.util.Date getDate()
Gets the date of the resource was originally created.
public int getTotalPages()
Gets the number of pages in the document (including any in contained documents).
public void beginDescription(java.lang.String namespace, java.lang.String alias, java.lang.String about)
Writes the RDF description for a given schema.
namespace
- the schema namespace URIalias
- the preferred schema namespace prefixabout
- 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.public void beginDescription(java.lang.String namespace, java.lang.String alias)
Writes the RDF description for a given schema.
namespace
- the schema namespace URIalias
- the preferred schema namespace prefixpublic void beginDescription()
Writes the RDF description.
public void endDescription()
Writes the end of RDF description.
public byte[] getUtf8(java.lang.String value)
Does the UTF-8 encoding for a given string text.
value
- string representing the text to convert to UTF-8 encoding.
public void draw(java.lang.String value)
Writes the given value to XMP Packet.
value
- A string value to be written.public void draw(boolean val)
Writes the boolean value to XMP Packet.
val
- A boolean value to be written.public void draw(java.util.Date date)
Writes the given date to XMP Packet in W3C recommended date format.
date
- A date to be written.public void draw(DocumentWriter writer)
Draws the XMP contents buffer to the given DocumentWriter
object.
writer
- DocumentWriter
object to receive the
XMP buffer's output.DocumentWriter
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |