Class RtfPageNumber

  • All Implemented Interfaces:
    Element, RtfField

    public class RtfPageNumber
    extends GenericRtfField
    implements RtfField
    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.1 $Date: 2009/08/28 20:31:00 $
    Author:
    Steffen.Stundzig@smb-tec.com, mhall@myrealbox.com
    • Field Detail

      • content

        private java.lang.String content
        Deprecated.
    • Constructor Detail

      • RtfPageNumber

        public RtfPageNumber​(java.lang.String content,
                             Font contentFont)
        Deprecated.
        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

      • write

        public void write​(RtfWriter writer,
                          java.io.OutputStream out)
                   throws java.io.IOException
        Deprecated.
        write this RtfField into a stream using the writer given as first argument.
        Specified by:
        write in interface RtfField
        Overrides:
        write in class AbstractRtfField
        Parameters:
        writer - the RtfWriter to use to write this RtfField
        out - the Stream to write this RtfField into.
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Deprecated.
        Description copied from class: Chunk
        Returns the content of this Chunk.
        Specified by:
        toString in interface Element
        Overrides:
        toString in class Chunk
        Returns:
        a String
        See Also:
        Element.toString()