com.lowagie.text.rtf

Class RtfWriter

    • Field Detail

      • escape

        public static final byte escape
        Deprecated. 
        This is the escape character which introduces RTF tags.
        See Also:
        Constant Field Values
      • extendedEscape

        private static final byte[] extendedEscape
        Deprecated. 
        This is another escape character which introduces RTF tags.
      • delimiter

        protected static final byte delimiter
        Deprecated. 
        This is the delimiter between RTF tags and normal text.
        See Also:
        Constant Field Values
      • commaDelimiter

        private static final byte commaDelimiter
        Deprecated. 
        This is another delimiter between RTF tags and normal text.
        See Also:
        Constant Field Values
      • openGroup

        public static final byte openGroup
        Deprecated. 
        This is the character for beginning a new group.
        See Also:
        Constant Field Values
      • closeGroup

        public static final byte closeGroup
        Deprecated. 
        This is the character for closing a group.
        See Also:
        Constant Field Values
      • docBegin

        private static final byte[] docBegin
        Deprecated. 
        RTF begin and version.
      • ansi

        private static final byte[] ansi
        Deprecated. 
        RTF encoding.
      • ansiCodepage

        private static final byte[] ansiCodepage
        Deprecated. 
        RTF encoding codepage.
      • fontTable

        private static final byte[] fontTable
        Deprecated. 
        Begin the font table tag.
      • fontNumber

        protected static final byte fontNumber
        Deprecated. 
        Font number tag.
        See Also:
        Constant Field Values
      • fontSize

        protected static final byte[] fontSize
        Deprecated. 
        Font size tag.
      • fontColor

        protected static final byte[] fontColor
        Deprecated. 
        Font color tag.
      • fontModern

        private static final byte[] fontModern
        Deprecated. 
        Modern font tag.
      • fontSwiss

        private static final byte[] fontSwiss
        Deprecated. 
        Swiss font tag.
      • fontRoman

        private static final byte[] fontRoman
        Deprecated. 
        Roman font tag.
      • fontTech

        private static final byte[] fontTech
        Deprecated. 
        Tech font tag.
      • fontCharset

        private static final byte[] fontCharset
        Deprecated. 
        Font charset tag.
      • fontCourier

        private static final byte[] fontCourier
        Deprecated. 
        Font Courier tag.
      • fontArial

        private static final byte[] fontArial
        Deprecated. 
        Font Arial tag.
      • fontSymbol

        private static final byte[] fontSymbol
        Deprecated. 
        Font Symbol tag.
      • fontTimesNewRoman

        private static final byte[] fontTimesNewRoman
        Deprecated. 
        Font Times New Roman tag.
      • fontWindings

        private static final byte[] fontWindings
        Deprecated. 
        Font Windings tag.
      • defaultFont

        private static final byte[] defaultFont
        Deprecated. 
        Default Font.
      • firstIndent

        private static final byte[] firstIndent
        Deprecated. 
        First indent tag.
      • listIndent

        private static final byte[] listIndent
        Deprecated. 
        Left indent tag.
      • rightIndent

        private static final byte[] rightIndent
        Deprecated. 
        Right indent tag.
      • sectionDefaults

        private static final byte[] sectionDefaults
        Deprecated. 
        Reset section defaults tag.
      • section

        private static final byte[] section
        Deprecated. 
        Begin new section tag.
      • paragraphDefaults

        public static final byte[] paragraphDefaults
        Deprecated. 
        Reset paragraph defaults tag.
      • paragraph

        public static final byte[] paragraph
        Deprecated. 
        Begin new paragraph tag.
      • sectionPageWidth

        public static final byte[] sectionPageWidth
        Deprecated. 
        Page width of a section.
      • sectionPageHeight

        public static final byte[] sectionPageHeight
        Deprecated. 
        Page height of a section.
      • listtableGroup

        private static final byte[] listtableGroup
        Deprecated. 
        Begin the List Table
      • listoverridetableGroup

        private static final byte[] listoverridetableGroup
        Deprecated. 
        Begin the List Override Table
      • listDefinition

        private static final byte[] listDefinition
        Deprecated. 
        Begin a List definition
      • listTemplateID

        private static final byte[] listTemplateID
        Deprecated. 
        List Template ID
      • hybridList

        private static final byte[] hybridList
        Deprecated. 
        RTF Writer outputs hybrid lists
      • listLevelDefinition

        private static final byte[] listLevelDefinition
        Deprecated. 
        Current List level
      • listLevelTypeOld

        private static final byte[] listLevelTypeOld
        Deprecated. 
        Level numbering (old)
      • listLevelTypeNew

        private static final byte[] listLevelTypeNew
        Deprecated. 
        Level numbering (new)
      • listLevelAlignOld

        private static final byte[] listLevelAlignOld
        Deprecated. 
        Level alignment (old)
      • listLevelAlignNew

        private static final byte[] listLevelAlignNew
        Deprecated. 
        Level alignment (new)
      • listLevelStartAt

        private static final byte[] listLevelStartAt
        Deprecated. 
        Level starting number
      • listLevelTextDefinition

        private static final byte[] listLevelTextDefinition
        Deprecated. 
        Level text group
      • listLevelTextLength

        private static final byte[] listLevelTextLength
        Deprecated. 
        Filler for Level Text Length
      • listLevelTextStyleNumbers

        private static final byte[] listLevelTextStyleNumbers
        Deprecated. 
        Level Text Numbering Style
      • listLevelTextStyleBullet

        private static final byte[] listLevelTextStyleBullet
        Deprecated. 
        Level Text Bullet Style
      • listLevelNumbersDefinition

        private static final byte[] listLevelNumbersDefinition
        Deprecated. 
        Level Numbers Definition
      • listLevelNumbers

        private static final byte[] listLevelNumbers
        Deprecated. 
        Filler for Level Numbers
      • tabStop

        private static final byte[] tabStop
        Deprecated. 
        Tab Stop
      • listBegin

        private static final byte[] listBegin
        Deprecated. 
        Actual list begin
      • listCurrentLevel

        private static final byte[] listCurrentLevel
        Deprecated. 
        Current list level
      • listTextOld

        private static final byte[] listTextOld
        Deprecated. 
        List text group for older browsers
      • tab

        private static final byte[] tab
        Deprecated. 
        Tab
      • listBulletOld

        private static final byte[] listBulletOld
        Deprecated. 
        Old Bullet Style
      • listID

        private static final byte[] listID
        Deprecated. 
        Current List ID
      • listOverride

        private static final byte[] listOverride
        Deprecated. 
        List override
      • listOverrideCount

        private static final byte[] listOverrideCount
        Deprecated. 
        Number of overrides
      • underline

        protected static final byte[] underline
        Deprecated. 
        Underline tag.
      • strikethrough

        protected static final byte[] strikethrough
        Deprecated. 
        Strikethrough tag.
      • alignLeft

        public static final byte[] alignLeft
        Deprecated. 
        Text alignment left tag.
      • alignCenter

        public static final byte[] alignCenter
        Deprecated. 
        Text alignment center tag.
      • alignRight

        public static final byte[] alignRight
        Deprecated. 
        Text alignment right tag.
      • alignJustify

        public static final byte[] alignJustify
        Deprecated. 
        Text alignment justify tag.
      • colorTable

        private static final byte[] colorTable
        Deprecated. 
        Begin colour table tag.
      • colorRed

        private static final byte[] colorRed
        Deprecated. 
        Red value tag.
      • colorGreen

        private static final byte[] colorGreen
        Deprecated. 
        Green value tag.
      • colorBlue

        private static final byte[] colorBlue
        Deprecated. 
        Blue value tag.
      • infoBegin

        private static final byte[] infoBegin
        Deprecated. 
        Begin the info group tag.
      • metaAuthor

        private static final byte[] metaAuthor
        Deprecated. 
        Author tag.
      • metaSubject

        private static final byte[] metaSubject
        Deprecated. 
        Subject tag.
      • metaKeywords

        private static final byte[] metaKeywords
        Deprecated. 
        Keywords tag.
      • metaTitle

        private static final byte[] metaTitle
        Deprecated. 
        Title tag.
      • metaProducer

        private static final byte[] metaProducer
        Deprecated. 
        Producer tag.
      • metaCreationDate

        private static final byte[] metaCreationDate
        Deprecated. 
        Creation Date tag.
      • year

        private static final byte[] year
        Deprecated. 
        Year tag.
      • month

        private static final byte[] month
        Deprecated. 
        Month tag.
      • day

        private static final byte[] day
        Deprecated. 
        Day tag.
      • hour

        private static final byte[] hour
        Deprecated. 
        Hour tag.
      • minute

        private static final byte[] minute
        Deprecated. 
        Minute tag.
      • second

        private static final byte[] second
        Deprecated. 
        Second tag.
      • startSuper

        private static final byte[] startSuper
        Deprecated. 
        Start superscript.
      • startSub

        private static final byte[] startSub
        Deprecated. 
        Start subscript.
      • endSuperSub

        private static final byte[] endSuperSub
        Deprecated. 
        End super/sub script.
      • titlePage

        private static final byte[] titlePage
        Deprecated. 
        Title Page tag
      • facingPages

        private static final byte[] facingPages
        Deprecated. 
        Facing pages tag
      • headerBegin

        private static final byte[] headerBegin
        Deprecated. 
        Begin header group tag.
      • footerBegin

        private static final byte[] footerBegin
        Deprecated. 
        Begin footer group tag.
      • headerlBegin

        private static final byte[] headerlBegin
        Deprecated. 
      • footerlBegin

        private static final byte[] footerlBegin
        Deprecated. 
      • headerrBegin

        private static final byte[] headerrBegin
        Deprecated. 
      • footerrBegin

        private static final byte[] footerrBegin
        Deprecated. 
      • headerfBegin

        private static final byte[] headerfBegin
        Deprecated. 
      • footerfBegin

        private static final byte[] footerfBegin
        Deprecated. 
      • rtfPaperWidth

        private static final byte[] rtfPaperWidth
        Deprecated. 
        Paper width tag.
      • rtfPaperHeight

        private static final byte[] rtfPaperHeight
        Deprecated. 
        Paper height tag.
      • rtfMarginLeft

        private static final byte[] rtfMarginLeft
        Deprecated. 
        Margin left tag.
      • rtfMarginRight

        private static final byte[] rtfMarginRight
        Deprecated. 
        Margin right tag.
      • rtfMarginTop

        private static final byte[] rtfMarginTop
        Deprecated. 
        Margin top tag.
      • rtfMarginBottom

        private static final byte[] rtfMarginBottom
        Deprecated. 
        Margin bottom tag.
      • newPage

        private static final byte[] newPage
        Deprecated. 
        New Page tag.
      • landscapeTag1

        private static final byte[] landscapeTag1
        Deprecated. 
        Document Landscape tag 1.
      • landscapeTag2

        private static final byte[] landscapeTag2
        Deprecated. 
        Document Landscape tag 2.
      • annotationID

        private static final byte[] annotationID
        Deprecated. 
        Annotation ID tag.
      • annotationAuthor

        private static final byte[] annotationAuthor
        Deprecated. 
        Annotation Author tag.
      • annotation

        private static final byte[] annotation
        Deprecated. 
        Annotation text tag.
      • pictureGroup

        private static final byte[] pictureGroup
        Deprecated. 
        Begin the main Picture group tag
      • picture

        private static final byte[] picture
        Deprecated. 
        Begin the picture tag
      • picturePNG

        private static final byte[] picturePNG
        Deprecated. 
        PNG Image
      • pictureJPEG

        private static final byte[] pictureJPEG
        Deprecated. 
        JPEG Image
      • pictureBMP

        private static final byte[] pictureBMP
        Deprecated. 
        BMP Image
      • pictureWMF

        private static final byte[] pictureWMF
        Deprecated. 
        WMF Image
      • pictureWidth

        private static final byte[] pictureWidth
        Deprecated. 
        Picture width
      • pictureHeight

        private static final byte[] pictureHeight
        Deprecated. 
        Picture height
      • pictureScaleX

        private static final byte[] pictureScaleX
        Deprecated. 
        Picture scale horizontal percent
      • pictureScaleY

        private static final byte[] pictureScaleY
        Deprecated. 
        Picture scale vertical percent
      • field

        protected static final byte[] field
        Deprecated. 
        Begin field tag
      • fieldContent

        protected static final byte[] fieldContent
        Deprecated. 
        Content fo the field
      • fieldPage

        protected static final byte[] fieldPage
        Deprecated. 
        PAGE numbers
      • fieldHyperlink

        protected static final byte[] fieldHyperlink
        Deprecated. 
        HYPERLINK field
      • fieldDisplay

        protected static final byte[] fieldDisplay
        Deprecated. 
        Last page number (not used)
      • fontList

        private ArrayList fontList
        Deprecated. 
        This ArrayList contains all fonts used in the document.
      • colorList

        private ArrayList colorList
        Deprecated. 
        This ArrayList contains all colours used in the document.
      • content

        private ByteArrayOutputStream content
        Deprecated. 
        This ByteArrayOutputStream contains the main body of the document.
      • info

        private ByteArrayOutputStream info
        Deprecated. 
        This ByteArrayOutputStream contains the information group.
      • listtable

        private ByteArrayOutputStream listtable
        Deprecated. 
        This ByteArrayOutputStream contains the list table.
      • listoverride

        private ByteArrayOutputStream listoverride
        Deprecated. 
        This ByteArrayOutputStream contains the list override table.
      • header

        private HeaderFooter header
        Deprecated. 
        Document header.
      • footer

        private HeaderFooter footer
        Deprecated. 
        Document footer.
      • marginLeft

        private int marginLeft
        Deprecated. 
        Left margin.
      • marginRight

        private int marginRight
        Deprecated. 
        Right margin.
      • marginTop

        private int marginTop
        Deprecated. 
        Top margin.
      • marginBottom

        private int marginBottom
        Deprecated. 
        Bottom margin.
      • pageWidth

        private int pageWidth
        Deprecated. 
        Page width.
      • pageHeight

        private int pageHeight
        Deprecated. 
        Page height.
      • TWIPSFACTOR

        public static final double TWIPSFACTOR
        Deprecated. 
        Factor to use when converting.
        See Also:
        Constant Field Values
      • currentListID

        private int currentListID
        Deprecated. 
        Current list ID.
      • listIds

        private ArrayList listIds
        Deprecated. 
        List of current Lists.
      • listLevel

        private int listLevel
        Deprecated. 
        Current List Level.
      • maxListLevel

        private int maxListLevel
        Deprecated. 
        Current maximum List Level.
      • writeTOC

        private boolean writeTOC
        Deprecated. 
        Write a TOC
      • hasTitlePage

        private boolean hasTitlePage
        Deprecated. 
        Special title page
      • inHeaderFooter

        private boolean inHeaderFooter
        Deprecated. 
        Currently writing either Header or Footer
      • inTable

        private boolean inTable
        Deprecated. 
        Currently writing a Table
      • landscape

        private boolean landscape
        Deprecated. 
        Landscape or Portrait Document
    • Constructor Detail

      • RtfWriter

        protected RtfWriter(Document doc,
                 OutputStream os)
        Deprecated. 
        Constructs a RtfWriter.
        Parameters:
        doc - The Document that is to be written as RTF
        os - The OutputStream the writer has to write to.
    • Method Detail

      • setGenerateTOCEntries

        public void setGenerateTOCEntries(boolean writeTOC)
        Deprecated. 
        This method controls whether TOC entries are automatically generated
        Parameters:
        writeTOC - boolean value indicating whether a TOC is to be generated
      • getGeneratingTOCEntries

        public boolean getGeneratingTOCEntries()
        Deprecated. 
        Gets the current setting of writeTOC
        Returns:
        boolean value indicating whether a TOC is being generated
      • setHasTitlePage

        public void setHasTitlePage(boolean hasTitlePage)
        Deprecated. 
        This method controls whether the first page is a title page
        Parameters:
        hasTitlePage - boolean value indicating whether the first page is a title page
      • getHasTitlePage

        public boolean getHasTitlePage()
        Deprecated. 
        Gets the current setting of hasTitlePage
        Returns:
        boolean value indicating whether the first page is a title page
      • setLandscape

        public void setLandscape(boolean landscape)
        Deprecated. 
        Explicitly sets the page format to use. Otherwise the RtfWriter will try to guess the format by comparing pagewidth and pageheight
        Parameters:
        landscape - boolean value indicating whether we are using landscape format or not
      • getLandscape

        public boolean getLandscape()
        Deprecated. 
        Returns the current landscape setting
        Returns:
        boolean value indicating the current page format
      • getInstance

        public static RtfWriter getInstance(Document document,
                            OutputStream os)
        Deprecated. 
        Gets an instance of the RtfWriter.
        Parameters:
        document - The Document that has to be written
        os - The OutputStream the writer has to write to.
        Returns:
        a new RtfWriter
      • open

        public void open()
        Deprecated. 
        Signals that the Document has been opened and that Elements can be added.
        Specified by:
        open in interface DocListener
        Overrides:
        open in class DocWriter
      • close

        public void close()
        Deprecated. 
        Signals that the Document was closed and that no other Elements will be added.

        The content of the font table, color table, information group, content, header, footer are merged into the final OutputStream

        Specified by:
        close in interface DocListener
        Overrides:
        close in class DocWriter
      • newPage

        public boolean newPage()
        Deprecated. 
        Tells the RtfWriter that a new page is to be begun.
        Specified by:
        newPage in interface DocListener
        Overrides:
        newPage in class DocWriter
        Returns:
        true if a new Page was begun.
      • setMargins

        public boolean setMargins(float marginLeft,
                         float marginRight,
                         float marginTop,
                         float marginBottom)
        Deprecated. 
        Sets the page margins
        Specified by:
        setMargins in interface DocListener
        Overrides:
        setMargins in class DocWriter
        Parameters:
        marginLeft - The left margin
        marginRight - The right margin
        marginTop - The top margin
        marginBottom - The bottom margin
        Returns:
        true if the page margins were set.
      • setPageSize

        public boolean setPageSize(Rectangle pageSize)
        Deprecated. 
        Sets the page size
        Specified by:
        setPageSize in interface DocListener
        Overrides:
        setPageSize in class DocWriter
        Parameters:
        pageSize - A Rectangle specifying the page size
        Returns:
        true if the page size was set
      • writeTOC

        public boolean writeTOC(String tocTitle,
                       Font titleFont,
                       boolean showTOCasEntry,
                       Font showTOCEntryFont)
        Deprecated. 
        Write the table of contents.
        Parameters:
        tocTitle - The title that will be displayed above the TOC
        titleFont - The Font that will be used for the tocTitle
        showTOCasEntry - Set this to true if you want the TOC to appear as an entry in the TOC
        showTOCEntryFont - Use this Font to specify what Font to use when showTOCasEntry is true
        Returns:
        true if the TOC was added.
      • add

        public boolean add(Element element)
                    throws DocumentException
        Deprecated. 
        Signals that an Element was added to the Document.
        Specified by:
        add in interface ElementListener
        Overrides:
        add in class DocWriter
        Parameters:
        element - A high level object to add
        Returns:
        true if the element was added, false if not.
        Throws:
        DocumentException - if a document isn't open yet, or has been closed
      • addElement

        protected boolean addElement(Element element,
                         ByteArrayOutputStream out)
                              throws DocumentException
        Deprecated. 
        Adds an Element to the Document.
        Parameters:
        element - the high level element to add
        out - the outputstream to which the RTF data is sent
        Returns:
        true if the element was added, false if not.
        Throws:
        DocumentException - if a document isn't open yet, or has been closed
      • writeParagraph

        private void writeParagraph(Paragraph paragraphElement,
                          ByteArrayOutputStream out)
                             throws IOException
        Deprecated. 
        Write the beginning of a new Paragraph
        Parameters:
        paragraphElement - The Paragraph to be written
        out - The ByteArrayOutputStream to write to
        Throws:
        IOException
      • writePhrase

        private void writePhrase(Phrase phrase,
                       ByteArrayOutputStream out)
                          throws IOException
        Deprecated. 
        Write a Phrase.
        Parameters:
        phrase - The Phrase item to be written
        out - The ByteArrayOutputStream to write to
        Throws:
        IOException
      • writeAnchor

        private void writeAnchor(Anchor anchor,
                       ByteArrayOutputStream out)
                          throws IOException
        Deprecated. 
        Write an Anchor. Anchors are treated like Phrases.
        Parameters:
        anchor - The Chunk item to be written
        out - The ByteArrayOutputStream to write to
        Throws:
        IOException
      • writeAnnotation

        private void writeAnnotation(Annotation annotationElement,
                           ByteArrayOutputStream out)
                              throws IOException
        Deprecated. 
        Write an Annotation
        Parameters:
        annotationElement - The Annotation to be written
        out - The ByteArrayOutputStream to write to
        Throws:
        IOException
      • writeMeta

        private void writeMeta(byte[] metaName,
                     Meta meta)
                        throws IOException
        Deprecated. 
        Add a Meta element. It is written to the Inforamtion Group and merged with the main ByteArrayOutputStream when the Document is closed.
        Parameters:
        metaName - The type of Meta element to be added
        meta - The Meta element to be added Currently only the Meta Elements Author, Subject, Keywords, Title, Producer and CreationDate are supported.
        Throws:
        IOException
      • writeFormatedDateTime

        private void writeFormatedDateTime(String date)
                                    throws IOException
        Deprecated. 
        Writes a date. The date is formated Year, Month, Day, Hour, Minute, Second
        Parameters:
        date - The date to be written
        Throws:
        IOException
      • addFont

        protected int addFont(Font newFont)
        Deprecated. 
        Add a new Font to the list of fonts. If the Font already exists in the list of fonts, then it is not added again.
        Parameters:
        newFont - The Font to be added
        Returns:
        The index of the Font in the font list
      • addColor

        protected int addColor(Color newColor)
        Deprecated. 
        Add a new Color to the list of colours. If the Color already exists in the list of colours, then it is not added again.
        Parameters:
        newColor - The Color to be added
        Returns:
        The index of the color in the colour list
      • writeDocument

        private boolean writeDocument()
        Deprecated. 
        Merge all the different ArrayLists and ByteArrayOutputStreams to the final ByteArrayOutputStream
        Returns:
        true if all information was sucessfully written to the ByteArrayOutputStream
      • writeDocumentIntro

        private void writeDocumentIntro()
                                 throws IOException
        Deprecated. 
        Write the Rich Text file settings
        Throws:
        IOException
      • writeFontList

        private void writeFontList()
                            throws IOException
        Deprecated. 
        Write the font list to the final ByteArrayOutputStream
        Throws:
        IOException
      • writeColorList

        private void writeColorList()
                             throws IOException
        Deprecated. 
        Write the colour list to the final ByteArrayOutputStream
        Throws:
        IOException
      • writeInfoGroup

        private void writeInfoGroup()
                             throws IOException
        Deprecated. 
        Write the Information Group to the final ByteArrayOutputStream
        Throws:
        IOException
      • writeList

        private void writeList()
                        throws IOException
        Deprecated. 
        Write the listtable and listoverridetable to the final ByteArrayOutputStream
        Throws:
        IOException
      • writeInt

        public static final void writeInt(OutputStream out,
                    int i)
                                   throws IOException
        Deprecated. 
        Write an integer
        Parameters:
        out - The OuputStream to which the int value is to be written
        i - The int value to be written
        Throws:
        IOException
      • getRandomInt

        private int getRandomInt()
        Deprecated. 
        Get a random integer. This returns a unique random integer to be used with listids.
        Returns:
        Random int value.
      • writeHeadersFooters

        public void writeHeadersFooters(ByteArrayOutputStream os)
                                 throws IOException
        Deprecated. 
        Write the current header and footer to a ByteArrayOutputStream
        Parameters:
        os - The ByteArrayOutputStream to which the header and footer will be written.
        Throws:
        IOException
      • writeHeaderFooter

        private void writeHeaderFooter(HeaderFooter headerFooter,
                             byte[] hfType,
                             ByteArrayOutputStream target)
                                throws IOException
        Deprecated. 
        Write a HeaderFooter to a ByteArrayOutputStream
        Parameters:
        headerFooter - The HeaderFooter object to be written.
        hfType - The type of header or footer to be added.
        target - The ByteArrayOutputStream to which the HeaderFooter will be written.
        Throws:
        IOException
      • writeDocumentFormat

        private void writeDocumentFormat()
                                  throws IOException
        Deprecated. 
        Write the Document's Paper and Margin Size to the final ByteArrayOutputStream
        Throws:
        IOException
      • initDefaults

        private void initDefaults()
        Deprecated. 
        Initialise all helper classes. Clears alls lists, creates new ByteArrayOutputStream's
      • writeSectionDefaults

        private void writeSectionDefaults(ByteArrayOutputStream out)
                                   throws IOException
        Deprecated. 
        Writes the default values for the current Section
        Parameters:
        out - The ByteArrayOutputStream to be written to
        Throws:
        IOException
      • parseFormat

        private boolean parseFormat(Rectangle pageSize,
                          boolean rotate)
        Deprecated. 
        This method tries to fit the Rectangle pageSize to one of the predefined PageSize rectangles. If a match is found the pageWidth and pageHeight will be set according to values determined from files generated by MS Word2000 and OpenOffice 641. If no match is found the method will try to match the rotated Rectangle by calling itself with the parameter rotate set to true.
        Parameters:
        pageSize - a rectangle defining the size of the page
        rotate - portrait or lanscape?
        Returns:
        true if the format parsing succeeded
      • rectEquals

        private boolean rectEquals(Rectangle rect1,
                         Rectangle rect2)
        Deprecated. 
        This method compares to Rectangles. They are considered equal if width and height are the same
        Parameters:
        rect1 -
        rect2 -
        Returns:
        true if rect1 and rect2 represent the same rectangle
      • writingHeaderFooter

        public boolean writingHeaderFooter()
        Deprecated. 
        Returns whether we are currently writing a header or footer
        Returns:
        the value of inHeaderFooter
      • filterSpecialChar

        public static final String filterSpecialChar(String str,
                               boolean useHex)
        Deprecated. 
        Replaces special characters with their unicode values
        Parameters:
        str - The original String
        useHex -
        Returns:
        The converted String
      • addHeaderFooterFontColor

        private void addHeaderFooterFontColor(HeaderFooter hf)
        Deprecated. 
      • processHeaderFooter

        private void processHeaderFooter(HeaderFooter hf)
        Deprecated. 
Hosted by Hostbasket