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

📄 pdfpageeventhelper.html

📁 java编程java编程java编程java编程java编程java编程java编程
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<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>&nbsp;writer,                           <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;document)</PRE>
<DL>
<DD>Called when the document is opened.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onOpenDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)">onOpenDocument</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>&nbsp;writer,                        <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;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>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onStartPage(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)">onStartPage</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>&nbsp;writer,                      <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;document)</PRE>
<DL>
<DD>Called when a page is finished, just before being written to the document.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onEndPage(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)">onEndPage</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>&nbsp;writer,                            <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;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>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onCloseDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document)">onCloseDocument</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>&nbsp;writer,                        <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;document,                        float&nbsp;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>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onParagraph(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float)">onParagraph</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>&nbsp;writer,                           <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;document,                           float&nbsp;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>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onParagraphEnd(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float)">onParagraphEnd</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>&nbsp;writer,                      <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;document,                      float&nbsp;paragraphPosition,                      <A HREF="../../../../com/lowagie/text/Paragraph.html">Paragraph</A>&nbsp;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>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onChapter(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float, com.lowagie.text.Paragraph)">onChapter</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>&nbsp;writer,                         <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;document,                         float&nbsp;position)</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>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onChapterEnd(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float)">onChapterEnd</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>position</CODE> - the position of the end of the chapter.</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>&nbsp;writer,                      <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;document,                      float&nbsp;paragraphPosition,                      int&nbsp;depth,                      <A HREF="../../../../com/lowagie/text/Paragraph.html">Paragraph</A>&nbsp;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>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onSection(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float, int, com.lowagie.text.Paragraph)">onSection</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>&nbsp;writer,                         <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;document,                         float&nbsp;position)</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>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onSectionEnd(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, float)">onSectionEnd</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>position</CODE> - the position of the end of the section</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>&nbsp;writer,                         <A HREF="../../../../com/lowagie/text/Document.html">Document</A>&nbsp;document,                         <A HREF="../../../../com/lowagie/text/Rectangle.html">Rectangle</A>&nbsp;rect,                         <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>&nbsp;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>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html#onGenericTag(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, com.lowagie.text.Rectangle, java.lang.String)">onGenericTag</A></CODE> in interface <CODE><A HREF="../../../../com/lowagie/text/pdf/PdfPageEvent.html">PdfPageEvent</A></CODE></DL>
</DD>
<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>&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>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/lowagie/text/pdf/PdfPage.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/lowagie/text/pdf/PdfPageLabels.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>  &nbsp;
&nbsp;<A HREF="PdfPageEventHelper.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -