| |
|
| com.lowagie.text.rtf.RtfAddableElement com.lowagie.text.rtf.direct.RtfDirectContent
RtfDirectContent | public class RtfDirectContent extends RtfAddableElement (Code) | | The RtfDirectContent makes it possible to directly add RTF code into
an RTF document. This can be used to directly add RTF fragments that
have been created with other RTF editors. One important aspect is that
font and color numbers will not be modified. This means that the
fonts and colors visible in the final document might not be equivalent
with those set on the direct content.
For convenience the RtfDirectContent provides a DIRECT_SOFT_LINEBREAK
constant that makes it possible to easily add soft line-breaks anywhere in
the RTF document.
version: $Id: RtfDirectContent.java 2776 2007-05-23 20:01:40Z hallm $ author: Mark Hall (mhall@edu.uni-klu.ac.at) author: Thomas Bickel (tmb99@inode.at) |
Constructor Summary | |
public | RtfDirectContent(String directContent) Constructs a new RtfDirectContent with the content to add. |
Method Summary | |
public byte[] | write() Writes the direct content. | public void | writeContent(OutputStream out) Writes the element content to the given output stream. |
DIRECT_SOFT_LINEBREAK | final public static RtfDirectContent DIRECT_SOFT_LINEBREAK(Code) | | Add the DIRECT_SOFT_LINEBREAK to the Document to insert
a soft line-break at that position.
|
RtfDirectContent | public RtfDirectContent(String directContent)(Code) | | Constructs a new RtfDirectContent with the content to add.
Parameters: directContent - The content to add. |
|
|
|