com.lowagie.text.rtf

Class RtfPageNumber

public class RtfPageNumber extends GenericRtfField

Deprecated: Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.field.RtfPageNumber replaces the functionality of this class.

A rtf page number field. ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2. This class is based on the RtfWriter-package from Mark Hall.

Version: $Revision: 1.29 $Date: 2007/02/23 22:28:28 $

Author: Steffen.Stundzig (Steffen.Stundzig@smb-tec.com) Mark Hall (mhall@edu.uni-klu.ac.at)

Field Summary
Stringcontent
Constructor Summary
RtfPageNumber(String content, Font contentFont)
construct a RtfPageNumber.
Method Summary
StringtoString()
voidwrite(RtfWriter writer, OutputStream out)
write this RtfField into a stream using the writer given as first argument.

Field Detail

content

private String content

Constructor Detail

RtfPageNumber

public RtfPageNumber(String content, Font contentFont)
construct a RtfPageNumber. The parameter content will be displayed in front of the page number using the font given as second argument.

Parameters: content the String that will be displayed in front of the page number contentFont the font to use to display this page number

Method Detail

toString

public String toString()

See Also: toString

write

public void write(RtfWriter writer, OutputStream out)
write this RtfField into a stream using the writer given as first argument.

Parameters: writer the RtfWriter to use to write this RtfField out the Stream to write this RtfField into.

Throws: IOException