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

📄 document.html

📁 java编程java编程java编程java编程java编程java编程java编程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DL>
<DD>This constant may only be changed by Paulo Soares and/or Bruno Lowagie.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.Document.ITEXT_VERSION">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="compress"><!-- --></A><H3>
compress</H3>
<PRE>
public static boolean <B>compress</B></PRE>
<DL>
<DD>Allows the pdf documents to be produced without compression for debugging purposes.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="listeners"><!-- --></A><H3>
listeners</H3>
<PRE>
private <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ArrayList.html">ArrayList</A> <B>listeners</B></PRE>
<DL>
<DD>The DocListener.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="open"><!-- --></A><H3>
open</H3>
<PRE>
protected boolean <B>open</B></PRE>
<DL>
<DD>Is the document open or not?
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="close"><!-- --></A><H3>
close</H3>
<PRE>
protected boolean <B>close</B></PRE>
<DL>
<DD>Has the document already been closed?
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="pageSize"><!-- --></A><H3>
pageSize</H3>
<PRE>
protected <A HREF="../../../com/lowagie/text/Rectangle.html">Rectangle</A> <B>pageSize</B></PRE>
<DL>
<DD>The size of the page.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="watermark"><!-- --></A><H3>
watermark</H3>
<PRE>
protected <A HREF="../../../com/lowagie/text/Watermark.html">Watermark</A> <B>watermark</B></PRE>
<DL>
<DD>The watermark on the pages.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="marginLeft"><!-- --></A><H3>
marginLeft</H3>
<PRE>
protected float <B>marginLeft</B></PRE>
<DL>
<DD>margin in x direction starting from the left
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="marginRight"><!-- --></A><H3>
marginRight</H3>
<PRE>
protected float <B>marginRight</B></PRE>
<DL>
<DD>margin in x direction starting from the right
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="marginTop"><!-- --></A><H3>
marginTop</H3>
<PRE>
protected float <B>marginTop</B></PRE>
<DL>
<DD>margin in y direction starting from the top
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="marginBottom"><!-- --></A><H3>
marginBottom</H3>
<PRE>
protected float <B>marginBottom</B></PRE>
<DL>
<DD>margin in y direction starting from the bottom
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="javaScript_onLoad"><!-- --></A><H3>
javaScript_onLoad</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>javaScript_onLoad</B></PRE>
<DL>
<DD>Content of JavaScript onLoad function
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="javaScript_onUnLoad"><!-- --></A><H3>
javaScript_onUnLoad</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>javaScript_onUnLoad</B></PRE>
<DL>
<DD>Content of JavaScript onUnLoad function
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="htmlStyleClass"><!-- --></A><H3>
htmlStyleClass</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>htmlStyleClass</B></PRE>
<DL>
<DD>Style class in HTML body tag
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="pageN"><!-- --></A><H3>
pageN</H3>
<PRE>
protected int <B>pageN</B></PRE>
<DL>
<DD>Current pagenumber
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="header"><!-- --></A><H3>
header</H3>
<PRE>
protected <A HREF="../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A> <B>header</B></PRE>
<DL>
<DD>This is the textual part of a Page; it can contain a header
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="footer"><!-- --></A><H3>
footer</H3>
<PRE>
protected <A HREF="../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A> <B>footer</B></PRE>
<DL>
<DD>This is the textual part of the footer
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="Document()"><!-- --></A><H3>
Document</H3>
<PRE>
public <B>Document</B>()</PRE>
<DL>
<DD>Constructs a new <CODE>Document</CODE>-object.
<P>
</DL>
<HR>

<A NAME="Document(com.lowagie.text.Rectangle)"><!-- --></A><H3>
Document</H3>
<PRE>
public <B>Document</B>(<A HREF="../../../com/lowagie/text/Rectangle.html">Rectangle</A>&nbsp;pageSize)</PRE>
<DL>
<DD>Constructs a new <CODE>Document</CODE>-object.
<P>
<DT><B>Parameters:</B><DD><CODE>pageSize</CODE> - the pageSize</DL>
<HR>

<A NAME="Document(com.lowagie.text.Rectangle, float, float, float, float)"><!-- --></A><H3>
Document</H3>
<PRE>
public <B>Document</B>(<A HREF="../../../com/lowagie/text/Rectangle.html">Rectangle</A>&nbsp;pageSize,                float&nbsp;marginLeft,                float&nbsp;marginRight,                float&nbsp;marginTop,                float&nbsp;marginBottom)</PRE>
<DL>
<DD>Constructs a new <CODE>Document</CODE>-object.
<P>
<DT><B>Parameters:</B><DD><CODE>pageSize</CODE> - the pageSize<DD><CODE>marginLeft</CODE> - the margin on the left<DD><CODE>marginRight</CODE> - the margin on the right<DD><CODE>marginTop</CODE> - the margin on the top<DD><CODE>marginBottom</CODE> - the margin on the bottom</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="addDocListener(com.lowagie.text.DocListener)"><!-- --></A><H3>
addDocListener</H3>
<PRE>
public void <B>addDocListener</B>(<A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Adds a <CODE>DocListener</CODE> to the <CODE>Document</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the new DocListener.</DL>
</DD>
</DL>
<HR>

<A NAME="removeDocListener(com.lowagie.text.DocListener)"><!-- --></A><H3>
removeDocListener</H3>
<PRE>
public void <B>removeDocListener</B>(<A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Removes a <CODE>DocListener</CODE> from the <CODE>Document</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the DocListener that has to be removed.</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">Element</A>&nbsp;element)            throws <A HREF="../../../com/lowagie/text/DocumentException.html">DocumentException</A></PRE>
<DL>
<DD>Adds an <CODE>Element</CODE> to the <CODE>Document</CODE>.
<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">ElementListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>element</CODE> - the <CODE>Element</CODE> to add<DT><B>Returns:</B><DD><CODE>true</CODE> if the element was added, <CODE>false</CODE> if not<DT><B>Throws:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocumentException.html">DocumentException</A></CODE> - when a document isn't open yet, or has been closed</DL>
</DD>
</DL>
<HR>

<A NAME="open()"><!-- --></A><H3>
open</H3>
<PRE>
public void <B>open</B>()</PRE>
<DL>
<DD>Opens the document. <P> Once the document is opened, you can't write any Header- or Meta-information anymore. You have to open the document before you can begin to add content to the body of the document.
<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">DocListener</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setPageSize(com.lowagie.text.Rectangle)"><!-- --></A><H3>
setPageSize</H3>
<PRE>
public boolean <B>setPageSize</B>(<A HREF="../../../com/lowagie/text/Rectangle.html">Rectangle</A>&nbsp;pageSize)</PRE>
<DL>
<DD>Sets the pagesize.
<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">DocListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pageSize</CODE> - the new pagesize<DT><B>Returns:</B><DD>a <CODE>boolean</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="add(com.lowagie.text.Watermark)"><!-- --></A><H3>
add</H3>
<PRE>
public boolean <B>add</B>(<A HREF="../../../com/lowagie/text/Watermark.html">Watermark</A>&nbsp;watermark)</PRE>
<DL>
<DD>Sets the <CODE>Watermark</CODE>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#add(com.lowagie.text.Watermark)">add</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>watermark</CODE> - the watermark to add<DT><B>Returns:</B><DD><CODE>true</CODE> if the element was added, <CODE>false</CODE> if not.</DL>
</DD>
</DL>
<HR>

<A NAME="removeWatermark()"><!-- --></A><H3>
removeWatermark</H3>
<PRE>
public void <B>removeWatermark</B>()</PRE>
<DL>
<DD>Removes the <CODE>Watermark</CODE>.
<P>
<DD><DL>

⌨️ 快捷键说明

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