📄 pdfpageevent.html
字号:
<A NAME="onOpenDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)"><!-- --></A><H3>
onOpenDocument</H3>
<PRE>
public void <B>onOpenDocument</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document)</PRE>
<DL>
<DD>Called when the document is opened.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document</DL>
</DD>
</DL>
<HR>
<A NAME="onStartPage(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)"><!-- --></A><H3>
onStartPage</H3>
<PRE>
public void <B>onStartPage</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document)</PRE>
<DL>
<DD>Called when a page is initialized. <P> Note that if even if a page is not written this method is still called. It is preferable to use <CODE>onEndPage</CODE> to avoid infinite loops.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document</DL>
</DD>
</DL>
<HR>
<A NAME="onEndPage(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)"><!-- --></A><H3>
onEndPage</H3>
<PRE>
public void <B>onEndPage</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document)</PRE>
<DL>
<DD>Called when a page is finished, just before being written to the document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document</DL>
</DD>
</DL>
<HR>
<A NAME="onCloseDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)"><!-- --></A><H3>
onCloseDocument</H3>
<PRE>
public void <B>onCloseDocument</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document)</PRE>
<DL>
<DD>Called when the document is closed. <P> Note that this method is called with the page number equal to the last page plus one.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document</DL>
</DD>
</DL>
<HR>
<A NAME="onParagraph(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float)"><!-- --></A><H3>
onParagraph</H3>
<PRE>
public void <B>onParagraph</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document, float paragraphPosition)</PRE>
<DL>
<DD>Called when a Paragraph is written. <P> <CODE>paragraphPosition</CODE> will hold the height at which the paragraph will be written to. This is useful to insert bookmarks with more control.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document<DD><CODE>paragraphPosition</CODE> - the position the paragraph will be written to</DL>
</DD>
</DL>
<HR>
<A NAME="onParagraphEnd(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float)"><!-- --></A><H3>
onParagraphEnd</H3>
<PRE>
public void <B>onParagraphEnd</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document, float paragraphPosition)</PRE>
<DL>
<DD>Called when a Paragraph is written. <P> <CODE>paragraphPosition</CODE> will hold the height of the end of the paragraph.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document<DD><CODE>paragraphPosition</CODE> - the position of the end of the paragraph</DL>
</DD>
</DL>
<HR>
<A NAME="onChapter(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float, com.lowagie.text.Paragraph)"><!-- --></A><H3>
onChapter</H3>
<PRE>
public void <B>onChapter</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document, float paragraphPosition, <A HREF="../../../../com/lowagie/text/Paragraph.html">Paragraph</A> title)</PRE>
<DL>
<DD>Called when a Chapter is written. <P> <CODE>position</CODE> will hold the height at which the chapter will be written to.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document<DD><CODE>paragraphPosition</CODE> - the position the chapter will be written to<DD><CODE>title</CODE> - the title of the Chapter</DL>
</DD>
</DL>
<HR>
<A NAME="onChapterEnd(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float)"><!-- --></A><H3>
onChapterEnd</H3>
<PRE>
public void <B>onChapterEnd</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document, float paragraphPosition)</PRE>
<DL>
<DD>Called when the end of a Chapter is reached. <P> <CODE>position</CODE> will hold the height of the end of the chapter.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document<DD><CODE>paragraphPosition</CODE> - the position the chapter will be written to</DL>
</DD>
</DL>
<HR>
<A NAME="onSection(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float, int, com.lowagie.text.Paragraph)"><!-- --></A><H3>
onSection</H3>
<PRE>
public void <B>onSection</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document, float paragraphPosition, int depth, <A HREF="../../../../com/lowagie/text/Paragraph.html">Paragraph</A> title)</PRE>
<DL>
<DD>Called when a Section is written. <P> <CODE>position</CODE> will hold the height at which the section will be written to.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document<DD><CODE>paragraphPosition</CODE> - the position the chapter will be written to<DD><CODE>title</CODE> - the title of the Chapter</DL>
</DD>
</DL>
<HR>
<A NAME="onSectionEnd(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float)"><!-- --></A><H3>
onSectionEnd</H3>
<PRE>
public void <B>onSectionEnd</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document, float paragraphPosition)</PRE>
<DL>
<DD>Called when the end of a Section is reached. <P> <CODE>position</CODE> will hold the height of the section end.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document<DD><CODE>paragraphPosition</CODE> - the position the chapter will be written to</DL>
</DD>
</DL>
<HR>
<A NAME="onGenericTag(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, com.lowagie.text.Rectangle, java.lang.String)"><!-- --></A><H3>
onGenericTag</H3>
<PRE>
public void <B>onGenericTag</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/Document.html">Document</A> document, <A HREF="../../../../com/lowagie/text/Rectangle.html">Rectangle</A> rect, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> text)</PRE>
<DL>
<DD>Called when a <CODE>Chunk</CODE> with a generic tag is written. <P> It is usefull to pinpoint the <CODE>Chunk</CODE> location to generate bookmarks, for example.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the <CODE>PdfWriter</CODE> for this document<DD><CODE>document</CODE> - the document<DD><CODE>rect</CODE> - the <CODE>Rectangle</CODE> containing the <CODE>Chunk</CODE><DD><CODE>text</CODE> - the text of the tag</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/lowagie/text/pdf/PdfPageElement.html"><B>PREV CLASS</B></A>
<A HREF="../../../../com/lowagie/text/pdf/PdfPTableEvent.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="PdfPageEvent.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -