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

📄 htmlwriter.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DT><B>Parameters:</B><DD><CODE>header</CODE> - the element that has to be written<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="writeComment(java.lang.String)"><!-- --></A><H3>writeComment</H3><PRE>protected void <B>writeComment</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;comment)                     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></PRE><DL><DD>Writes some comment. <P> This method writes some comment.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>comment</CODE> - the comment that has to be written<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="setStandardFont(com.lowagie.text.Font)"><!-- --></A><H3>setStandardFont</H3><PRE>public void <B>setStandardFont</B>(<A HREF="../../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A>&nbsp;standardfont)</PRE><DL><DD>Changes the standardfont.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>standardfont</CODE> - The font</DL></DD></DL><HR><A NAME="isOtherFont(com.lowagie.text.Font)"><!-- --></A><H3>isOtherFont</H3><PRE>public boolean <B>isOtherFont</B>(<A HREF="../../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A>&nbsp;font)</PRE><DL><DD>Checks if a given font is the same as the font that was last used.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>font</CODE> - the font of an object<DT><B>Returns:</B><DD>true if the font differs</DL></DD></DL><HR><A NAME="setImagepath(java.lang.String)"><!-- --></A><H3>setImagepath</H3><PRE>public void <B>setImagepath</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;imagepath)</PRE><DL><DD>Sets the basepath for images. <P> This is especially useful if you add images using a file, rather than an URL. In PDF there is no problem, since the images are added inline, but in HTML it is sometimes necessary to use a relative path or a special path to some images directory.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>imagepath</CODE> - the new imagepath</DL></DD></DL><HR><A NAME="resetImagepath()"><!-- --></A><H3>resetImagepath</H3><PRE>public void <B>resetImagepath</B>()</PRE><DL><DD>Resets the imagepath.<P><DD><DL></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;header)</PRE><DL><DD>Changes the header of this document.<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>header</CODE> - the new header</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;footer)</PRE><DL><DD>Changes the footer of this document.<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>footer</CODE> - the new footer</DL></DD></DL><HR><A NAME="add(java.lang.String)"><!-- --></A><H3>add</H3><PRE>public boolean <B>add</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;string)</PRE><DL><DD>Signals that a <CODE>String</CODE> was added to the <CODE>Document</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>string</CODE> - a String to add to the HTML<DT><B>Returns:</B><DD><CODE>true</CODE> if the string was added, <CODE>false</CODE> if not.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - when a document isn't open yet, or has been closed</DL></DD></DL><HR><A NAME="write(com.lowagie.text.Element, int)"><!-- --></A><H3>write</H3><PRE>protected void <B>write</B>(<A HREF="../../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A>&nbsp;element,                     int&nbsp;indent)              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></PRE><DL><DD>Writes the HTML representation of an element.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the element<DD><CODE>indent</CODE> - the indentation<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="writeSection(com.lowagie.text.Section, int)"><!-- --></A><H3>writeSection</H3><PRE>protected void <B>writeSection</B>(<A HREF="../../../../com/lowagie/text/Section.html" title="class in com.lowagie.text">Section</A>&nbsp;section,                            int&nbsp;indent)                     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></PRE><DL><DD>Writes the HTML representation of a section.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>section</CODE> - the section to write<DD><CODE>indent</CODE> - the indentation<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="write(com.lowagie.text.Font, java.util.Properties)"><!-- --></A><H3>write</H3><PRE>protected void <B>write</B>(<A HREF="../../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A>&nbsp;font,                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</A>&nbsp;styleAttributes)              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></PRE><DL><DD>Writes the representation of a <CODE>Font</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>font</CODE> - a <CODE>Font</CODE><DD><CODE>styleAttributes</CODE> - the style of the font<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="writeCssProperty(java.lang.String, java.lang.String)"><!-- --></A><H3>writeCssProperty</H3><PRE>protected void <B>writeCssProperty</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;prop,                                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;value)                         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></PRE><DL><DD>Writes out a CSS property.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>prop</CODE> - a CSS property<DD><CODE>value</CODE> - the value of the CSS property<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><!-- ========= 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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../../../com/lowagie/text/html/HtmlTags.html" title="class in com.lowagie.text.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../com/lowagie/text/html/Markup.html" title="class in com.lowagie.text.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?com/lowagie/text/html/HtmlWriter.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="HtmlWriter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -