Package com.lowagie.text.rtf.text
package com.lowagie.text.rtf.text
-
ClassesClassDescriptionThe RtfAnnotation provides support for adding Annotations to the rtf document.The RtfChapter wraps a Chapter element.The RtfChunk contains one piece of text.The RtfFootnote provides support for adding Footnotes to the rtf document.The RtfNewPage creates a new page.The RtfParagraph is an extension of the RtfPhrase that adds alignment and indentation properties.The RtfPhrase contains multiple RtfChunksThe RtfSection wraps a Section element.The RtfTab encapsulates a tab position and tab type in a paragraph.The RtfTabGroup is a convenience class if the same tabs are to be added to multiple paragraphs.
RtfTabGroup tabs = new RtfTabGroup();
tabs.add(new RtfTab(70, RtfTab.TAB_LEFT_ALIGN));
tabs.add(new RtfTab(160, RtfTab.TAB_CENTER_ALIGN));
tabs.add(new RtfTab(250, RtfTab.TAB_DECIMAL_ALIGN));
tabs.add(new RtfTab(500, RtfTab.TAB_RIGHT_ALIGN));
Paragraph para = new Paragraph();
para.add(tabs);
para.add("\tLeft aligned\tCentre aligned\t12,45\tRight aligned");