📄 document.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Document.html#top()">top</A></B>()</CODE><BR> Returns the upper right y-coordinate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Document.html#top(float)">top</A></B>(float margin)</CODE><BR> Returns the upper right y-coordinate, considering a given margin.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/lowagie/text/Document.html#topMargin()">topMargin</A></B>()</CODE><BR> Returns the top margin.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="ITEXT_VERSION"><!-- --></A><H3>ITEXT_VERSION</H3><PRE>private static final <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> <B>ITEXT_VERSION</B></PRE><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="plainRandomAccess"><!-- --></A><H3>plainRandomAccess</H3><PRE>public static boolean <B>plainRandomAccess</B></PRE><DL><DD>When true the file access is not done through a memory mapped file. Use it if the file is too big to be mapped in your address space.<P><DL></DL></DL><HR><A NAME="wmfFontCorrection"><!-- --></A><H3>wmfFontCorrection</H3><PRE>public static float <B>wmfFontCorrection</B></PRE><DL><DD>Scales the WMF font size. The default value is 0.86.<P><DL></DL></DL><HR><A NAME="listeners"><!-- --></A><H3>listeners</H3><PRE>private <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">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" title="class in com.lowagie.text">Rectangle</A> <B>pageSize</B></PRE><DL><DD>The size of the page.<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="marginMirroring"><!-- --></A><H3>marginMirroring</H3><PRE>protected boolean <B>marginMirroring</B></PRE><DL><DL></DL></DL><HR><A NAME="javaScript_onLoad"><!-- --></A><H3>javaScript_onLoad</H3><PRE>protected <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> <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.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">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.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">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" title="class in com.lowagie.text">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" title="class in com.lowagie.text">HeaderFooter</A> <B>footer</B></PRE><DL><DD>This is the textual part of the footer<P><DL></DL></DL><HR><A NAME="chapternumber"><!-- --></A><H3>chapternumber</H3><PRE>protected int <B>chapternumber</B></PRE><DL><DD>This is a chapter number in case ChapterAutoNumber is used.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></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" title="class in com.lowagie.text">Rectangle</A> pageSize)</PRE><DL><DD>Constructs a new <CODE>Document</CODE> -object.<P><DL><DT><B>Parameters:</B><DD><CODE>pageSize</CODE> - the pageSize</DL></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" title="class in com.lowagie.text">Rectangle</A> pageSize, float marginLeft, float marginRight, float marginTop, float marginBottom)</PRE><DL><DD>Constructs a new <CODE>Document</CODE> -object.<P><DL><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></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></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" title="interface in com.lowagie.text">DocListener</A> 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -