⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtfwriter2.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DL><DD>Static method to generate RtfWriters<P><DD><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The Document that this RtfWriter listens to<DD><CODE>os</CODE> - The OutputStream to write to<DT><B>Returns:</B><DD>The new RtfWriter</DL></DD></DL><HR><A NAME="setHeader(com.lowagie.text.HeaderFooter)"><!-- --></A><H3>setHeader</H3><PRE>public void <B>setHeader</B>(<A HREF="../../../../com/lowagie/text/HeaderFooter.html" title="class in com.lowagie.text">HeaderFooter</A>&nbsp;hf)</PRE><DL><DD>Sets the header to use<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#setHeader(com.lowagie.text.HeaderFooter)">setHeader</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#setHeader(com.lowagie.text.HeaderFooter)">setHeader</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>hf</CODE> - The HeaderFooter to use</DL></DD></DL><HR><A NAME="resetHeader()"><!-- --></A><H3>resetHeader</H3><PRE>public void <B>resetHeader</B>()</PRE><DL><DD>Resets the header<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#resetHeader()">resetHeader</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#resetHeader()">resetHeader</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setFooter(com.lowagie.text.HeaderFooter)"><!-- --></A><H3>setFooter</H3><PRE>public void <B>setFooter</B>(<A HREF="../../../../com/lowagie/text/HeaderFooter.html" title="class in com.lowagie.text">HeaderFooter</A>&nbsp;hf)</PRE><DL><DD>Sets the footer to use<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#setFooter(com.lowagie.text.HeaderFooter)">setFooter</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#setFooter(com.lowagie.text.HeaderFooter)">setFooter</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>hf</CODE> - The HeaderFooter to use</DL></DD></DL><HR><A NAME="resetFooter()"><!-- --></A><H3>resetFooter</H3><PRE>public void <B>resetFooter</B>()</PRE><DL><DD>Resets the footer<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#resetFooter()">resetFooter</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#resetFooter()">resetFooter</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setPageCount(int)"><!-- --></A><H3>setPageCount</H3><PRE>public void <B>setPageCount</B>(int&nbsp;i)</PRE><DL><DD>This method is not supported in the RtfWriter<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#setPageCount(int)">setPageCount</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#setPageCount(int)">setPageCount</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - Unused</DL></DD></DL><HR><A NAME="resetPageCount()"><!-- --></A><H3>resetPageCount</H3><PRE>public void <B>resetPageCount</B>()</PRE><DL><DD>This method is not supported in the RtfWriter<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#resetPageCount()">resetPageCount</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#resetPageCount()">resetPageCount</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clearTextWrap()"><!-- --></A><H3>clearTextWrap</H3><PRE>public void <B>clearTextWrap</B>()</PRE><DL><DD>This method is not supported in the RtfWriter<P><DD><DL></DL></DD></DL><HR><A NAME="open()"><!-- --></A><H3>open</H3><PRE>public void <B>open</B>()</PRE><DL><DD>Opens the RtfDocument<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#open()">open</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#open()">open</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()</PRE><DL><DD>Closes the RtfDocument. This causes the document to be written to the specified OutputStream<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#close()">close</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="add(com.lowagie.text.Element)"><!-- --></A><H3>add</H3><PRE>public boolean <B>add</B>(<A HREF="../../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A>&nbsp;element)            throws <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Adds an Element to the Document<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/ElementListener.html#add(com.lowagie.text.Element)">add</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/ElementListener.html" title="interface in com.lowagie.text">ElementListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#add(com.lowagie.text.Element)">add</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - The element to be added<DT><B>Returns:</B><DD><code>false</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE></DL></DD></DL><HR><A NAME="newPage()"><!-- --></A><H3>newPage</H3><PRE>public boolean <B>newPage</B>()</PRE><DL><DD>Adds a page break<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#newPage()">newPage</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#newPage()">newPage</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>false</code></DL></DD></DL><HR><A NAME="setMargins(float, float, float, float)"><!-- --></A><H3>setMargins</H3><PRE>public boolean <B>setMargins</B>(float&nbsp;left,                          float&nbsp;right,                          float&nbsp;top,                          float&nbsp;bottom)</PRE><DL><DD>Sets the page margins<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#setMargins(float, float, float, float)">setMargins</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#setMargins(float, float, float, float)">setMargins</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>left</CODE> - The left margin<DD><CODE>right</CODE> - The right margin<DD><CODE>top</CODE> - The top margin<DD><CODE>bottom</CODE> - The bottom margin<DT><B>Returns:</B><DD><code>false</code></DL></DD></DL><HR><A NAME="setPageSize(com.lowagie.text.Rectangle)"><!-- --></A><H3>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -