📄 htmlwriter.html
字号:
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../../com/lowagie/text/html/HtmlWriter.html">HtmlWriter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#getInstance(com.lowagie.text.Document, java.io.OutputStream)">getInstance</A></B>(<A HREF="../../../../com/lowagie/text/Document.html">Document</A> document, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html">OutputStream</A> os)</CODE>
<BR>
Gets an instance of the <CODE>HtmlWriter</CODE>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#initFooter()">initFooter</A></B>()</CODE>
<BR>
Adds the header to the top of the </CODE>Document</CODE></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#initHeader()">initHeader</A></B>()</CODE>
<BR>
Adds the header to the top of the </CODE>Document</CODE></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#isOtherFont(com.lowagie.text.Font)">isOtherFont</A></B>(<A HREF="../../../../com/lowagie/text/Font.html">Font</A> font)</CODE>
<BR>
Checks if a given font is the same as the font that was last used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#newPage()">newPage</A></B>()</CODE>
<BR>
Signals that an new page has to be started.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#open()">open</A></B>()</CODE>
<BR>
Signals that the <CODE>Document</CODE> has been opened and that <CODE>Elements</CODE> can be added. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#resetImagepath()">resetImagepath</A></B>()</CODE>
<BR>
Resets the imagepath.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#setFooter(com.lowagie.text.HeaderFooter)">setFooter</A></B>(<A HREF="../../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A> footer)</CODE>
<BR>
Changes the footer of this document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#setHeader(com.lowagie.text.HeaderFooter)">setHeader</A></B>(<A HREF="../../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A> header)</CODE>
<BR>
Changes the header of this document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#setImagepath(java.lang.String)">setImagepath</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> imagepath)</CODE>
<BR>
Sets the basepath for images. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#setStandardFont(com.lowagie.text.Font)">setStandardFont</A></B>(<A HREF="../../../../com/lowagie/text/Font.html">Font</A> standardFont)</CODE>
<BR>
Changes the standardfont.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#write(com.lowagie.text.Element, int)">write</A></B>(<A HREF="../../../../com/lowagie/text/Element.html">Element</A> element, int indent)</CODE>
<BR>
Writes the HTML representation of an element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#write(com.lowagie.text.Font, java.util.Properties)">write</A></B>(<A HREF="../../../../com/lowagie/text/Font.html">Font</A> font, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html">Properties</A> styleAttributes)</CODE>
<BR>
Writes the representation of a <CODE>Font</CODE>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#writeComment(java.lang.String)">writeComment</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> comment)</CODE>
<BR>
Writes some comment. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#writeCssProperty(java.lang.String, java.lang.String)">writeCssProperty</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> prop, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> value)</CODE>
<BR>
Writes out a CSS property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#writeHeader(com.lowagie.text.Meta)">writeHeader</A></B>(<A HREF="../../../../com/lowagie/text/Meta.html">Meta</A> meta)</CODE>
<BR>
Writes a Metatag in the header.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#writeJavaScript(com.lowagie.text.Header)">writeJavaScript</A></B>(<A HREF="../../../../com/lowagie/text/Header.html">Header</A> header)</CODE>
<BR>
Writes a JavaScript section or, if the markup attribute HtmlTags.URL is set, a JavaScript reference in the header.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#writeLink(com.lowagie.text.Header)">writeLink</A></B>(<A HREF="../../../../com/lowagie/text/Header.html">Header</A> header)</CODE>
<BR>
Writes a link in the header.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/lowagie/text/html/HtmlWriter.html#writeSection(com.lowagie.text.Section, int)">writeSection</A></B>(<A HREF="../../../../com/lowagie/text/Section.html">Section</A> section, int indent)</CODE>
<BR>
Writes the HTML representation of a section.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_com.lowagie.text.DocWriter"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class com.lowagie.text.<A HREF="../../../../com/lowagie/text/DocWriter.html">DocWriter</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#add(com.lowagie.text.Watermark)">add</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#addTabs(int)">addTabs</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#flush()">flush</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#getISOBytes(java.lang.String)">getISOBytes</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#hasMarkupAttributes(com.lowagie.text.Element)">hasMarkupAttributes</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#isCloseStream()">isCloseStream</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#pause()">pause</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#removeWatermark()">removeWatermark</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#resetFooter()">resetFooter</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#resetHeader()">resetHeader</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#resetPageCount()">resetPageCount</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#resume()">resume</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#setCloseStream(boolean)">setCloseStream</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#setMargins(float, float, float, float)">setMargins</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#setPageCount(int)">setPageCount</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#setPageSize(com.lowagie.text.Rectangle)">setPageSize</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#write(java.lang.String)">write</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#write(java.lang.String, java.lang.String)">write</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#writeEnd()">writeEnd</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#writeEnd(java.lang.String)">writeEnd</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#writeMarkupAttributes(com.lowagie.text.MarkupAttributes)">writeMarkupAttributes</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#writeStart(java.lang.String)">writeStart</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_com.lowagie.text.DocListener"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from interface com.lowagie.text.<A HREF="../../../../com/lowagie/text/DocListener.html">DocListener</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/lowagie/text/DocListener.html#add(com.lowagie.text.Watermark)">add</A>, <A HREF="../../../../com/lowagie/text/DocListener.html#removeWatermark()">removeWatermark</A>, <A HREF="../../../../com/lowagie/text/DocListener.html#resetFooter()">resetFooter</A>, <A HREF="../../../../com/lowagie/text/DocListener.html#resetHeader()">resetHeader</A>, <A HREF="../../../../com/lowagie/text/DocListener.html#resetPageCount()">resetPageCount</A>, <A HREF="../../../../com/lowagie/text/DocListener.html#setMargins(float, float, float, float)">setMargins</A>, <A HREF="../../../../com/lowagie/text/DocListener.html#setPageCount(int)">setPageCount</A>, <A HREF="../../../../com/lowagie/text/DocListener.html#setPageSize(com.lowagie.text.Rectangle)">setPageSize</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="BEGINCOMMENT"><!-- --></A><H3>
BEGINCOMMENT</H3>
<PRE>
public static final byte[] <B>BEGINCOMMENT</B></PRE>
<DL>
<DD>This is a possible HTML-tag.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="ENDCOMMENT"><!-- --></A><H3>
ENDCOMMENT</H3>
<PRE>
public static final byte[] <B>ENDCOMMENT</B></PRE>
<DL>
<DD>This is a possible HTML-tag.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="NBSP"><!-- --></A><H3>
NBSP</H3>
<PRE>
public static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>NBSP</B></PRE>
<DL>
<DD>This is a possible HTML-tag.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.html.HtmlWriter.NBSP">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="currentfont"><!-- --></A><H3>
currentfont</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Stack.html">Stack</A> <B>currentfont</B></PRE>
<DL>
<DD>This is the current font of the HTML.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="standardfont"><!-- --></A><H3>
standardfont</H3>
<PRE>
protected <A HREF="../../../../com/lowagie/text/Font.html">Font</A> <B>standardfont</B></PRE>
<DL>
<DD>This is the standard font of the HTML.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="imagepath"><!-- --></A><H3>
imagepath</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>imagepath</B></PRE>
<DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -