com.lowagie.text.rtf.document
public class RtfInfoElement extends RtfElement
Version: $Id: RtfInfoElement.java 2776 2007-05-23 20:01:40Z hallm $
Field Summary | |
---|---|
String | content
The content of this RtfInfoElement |
int | infoType
The type of this RtfInfoElement. |
static byte[] | INFO_AUTHOR
Constant for the author element |
static byte[] | INFO_CREATION_DATE
Constant for the creationdate element |
static byte[] | INFO_KEYWORDS
Constant for the keywords element |
static byte[] | INFO_PRODUCER
Constant for the producer element |
static byte[] | INFO_SUBJECT
Constant for the subject element |
static byte[] | INFO_TITLE
Constant for the title element |
Constructor Summary | |
---|---|
RtfInfoElement(RtfDocument doc, Meta meta)
Constructs a RtfInfoElement based on the given Meta object
|
Method Summary | |
---|---|
String | convertDate(String date)
Converts a date from the format used by iText to the format required by
rtf. iText: EEE MMM dd HH:mm:ss zzz yyyy - rtf: \\'yr'yyyy\\'mo'MM\\'dy'dd\\'hr'HH\\'min'mm\\'sec'ss |
byte[] | write()
Writes this RtfInfoElement
|
void | writeContent(OutputStream result)
Writes the element content to the given output stream. |
Parameters: doc The RtfDocument this RtfInfoElement belongs to meta The Meta object this RtfInfoElement is based on
Parameters: date The date formated by iText
Returns: The date formated for rtf
Deprecated: replaced by writeContent
Writes this RtfInfoElementReturns: A byte array containing the RtfInfoElement data