📄 rtfwriter2.html
字号:
setPageSize</H3><PRE>public boolean <B>setPageSize</B>(<A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A> rect)</PRE><DL><DD>Sets the size of the page<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#setPageSize(com.lowagie.text.Rectangle)">setPageSize</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#setPageSize(com.lowagie.text.Rectangle)">setPageSize</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>rect</CODE> - A Rectangle representing the page<DT><B>Returns:</B><DD><code>false</code></DL></DD></DL><HR><A NAME="setAutogenerateTOCEntries(boolean)"><!-- --></A><H3>setAutogenerateTOCEntries</H3><PRE>public void <B>setAutogenerateTOCEntries</B>(boolean autogenerate)</PRE><DL><DD>Whether to automagically generate table of contents entries when adding Chapters or Sections.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>autogenerate</CODE> - Whether to automatically generate TOC entries</DL></DD></DL><HR><A NAME="getDocumentSettings()"><!-- --></A><H3>getDocumentSettings</H3><PRE>public <A HREF="../../../../com/lowagie/text/rtf/document/RtfDocumentSettings.html" title="class in com.lowagie.text.rtf.document">RtfDocumentSettings</A> <B>getDocumentSettings</B>()</PRE><DL><DD>Gets the RtfDocumentSettings that specify how the rtf document is generated.<P><DD><DL><DT><B>Returns:</B><DD>The current RtfDocumentSettings.</DL></DD></DL><HR><A NAME="importRtfDocument(java.io.FileInputStream)"><!-- --></A><H3>importRtfDocument</H3><PRE>public void <B>importRtfDocument</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/FileInputStream.html?is-external=true" title="class or interface in java.io">FileInputStream</A> documentSource) throws <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>, <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Adds the complete RTF document to the current RTF document being generated. It will parse the font and color tables and correct the font and color references so that the imported RTF document retains its formattings.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>documentSource</CODE> - The Reader to read the RTF document from.<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> - On errors reading the RTF document.<DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - On errors adding to this RTF document.<DT><B>Since:</B></DT> <DD>2.1.0</DD></DL></DD></DL><HR><A NAME="importRtfDocument(java.io.InputStream, java.util.EventListener[])"><!-- --></A><H3>importRtfDocument</H3><PRE>public void <B>importRtfDocument</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> documentSource, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventListener.html?is-external=true" title="class or interface in java.util">EventListener</A>[] events) throws <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>, <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Adds the complete RTF document to the current RTF document being generated. It will parse the font and color tables and correct the font and color references so that the imported RTF document retains its formattings. Uses new RtfParser object. (author: Howard Shank)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>documentSource</CODE> - The InputStream to read the RTF document from.<DD><CODE>events</CODE> - The array of event listeners. May be null<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><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE><DT><B>Since:</B></DT> <DD>2.0.8</DD><DT><B>See Also:</B><DD><A HREF="../../../../com/lowagie/text/rtf/parser/RtfParser.html" title="class in com.lowagie.text.rtf.parser"><CODE>RtfParser</CODE></A>, <A HREF="../../../../com/lowagie/text/rtf/parser/RtfParser.html#importRtfDocument(java.io.InputStream, com.lowagie.text.rtf.document.RtfDocument)"><CODE>RtfParser.importRtfDocument(InputStream, RtfDocument)</CODE></A></DL></DD></DL><HR><A NAME="importRtfFragment(java.io.InputStream, com.lowagie.text.rtf.parser.RtfImportMappings)"><!-- --></A><H3>importRtfFragment</H3><PRE>public void <B>importRtfFragment</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> documentSource, <A HREF="../../../../com/lowagie/text/rtf/parser/RtfImportMappings.html" title="class in com.lowagie.text.rtf.parser">RtfImportMappings</A> mappings) throws <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>, <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Adds a fragment of an RTF document to the current RTF document being generated. Since this fragment doesn't contain font or color tables, all fonts and colors are mapped to the default font and color. If the font and color mappings are known, they can be specified via the mappings parameter.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>documentSource</CODE> - The InputStream to read the RTF fragment from.<DD><CODE>mappings</CODE> - The RtfImportMappings that contain font and color mappings to apply to the fragment.<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> - On errors reading the RTF fragment.<DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - On errors adding to this RTF fragment.<DT><B>Since:</B></DT> <DD>2.1.0</DD></DL></DD></DL><HR><A NAME="importRtfFragment(java.io.InputStream, com.lowagie.text.rtf.parser.RtfImportMappings, java.util.EventListener[])"><!-- --></A><H3>importRtfFragment</H3><PRE>public void <B>importRtfFragment</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> documentSource, <A HREF="../../../../com/lowagie/text/rtf/parser/RtfImportMappings.html" title="class in com.lowagie.text.rtf.parser">RtfImportMappings</A> mappings, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventListener.html?is-external=true" title="class or interface in java.util">EventListener</A>[] events) throws <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>, <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Adds a fragment of an RTF document to the current RTF document being generated. Since this fragment doesn't contain font or color tables, all fonts and colors are mapped to the default font and color. If the font and color mappings are known, they can be specified via the mappings parameter. Uses new RtfParser object. (author: Howard Shank)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>documentSource</CODE> - The InputStream to read the RTF fragment from.<DD><CODE>mappings</CODE> - The RtfImportMappings that contain font and color mappings to apply to the fragment.<DD><CODE>events</CODE> - The array of event listeners. May be null<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> - On errors reading the RTF fragment.<DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - On errors adding to this RTF fragment.<DT><B>Since:</B></DT> <DD>2.0.8</DD><DT><B>See Also:</B><DD><A HREF="../../../../com/lowagie/text/rtf/parser/RtfImportMappings.html" title="class in com.lowagie.text.rtf.parser"><CODE>RtfImportMappings</CODE></A>, <A HREF="../../../../com/lowagie/text/rtf/parser/RtfParser.html" title="class in com.lowagie.text.rtf.parser"><CODE>RtfParser</CODE></A>, <A HREF="../../../../com/lowagie/text/rtf/parser/RtfParser.html#importRtfFragment(java.io.InputStream, com.lowagie.text.rtf.document.RtfDocument, com.lowagie.text.rtf.parser.RtfImportMappings)"><CODE>RtfParser.importRtfFragment(InputStream, RtfDocument, RtfImportMappings)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/lowagie/text/rtf/RtfMapper.html" title="class in com.lowagie.text.rtf"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/lowagie/text/rtf/RtfWriter2.html" target="_top"><B>FRAMES</B></A> <A HREF="RtfWriter2.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -