protected class HtmlToPdf.HeaderFooter
extends com.itextpdf.text.pdf.PdfPageEventHelper
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
__datetime
The date and time shown in the footer.
|
protected int |
__numpages
The total number of pages shown in the footer.
|
protected int |
__pagenum
The page number shown in the footer.
|
protected java.lang.String |
__title
The title shown in the header.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Modifier | Constructor and Description |
|---|---|
protected |
HeaderFooter(java.lang.String title,
int numpages)
Creates a new header-footer instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onEndPage(com.itextpdf.text.pdf.PdfWriter writer,
com.itextpdf.text.Document document)
Called when a page is finished, just before being written to the document.
|
private static final long serialVersionUID
protected java.lang.String __title
protected int __pagenum
protected int __numpages
protected java.lang.String __datetime
protected HeaderFooter(java.lang.String title,
int numpages)
title - (String) The title shown in the header.numpages - (int) The total number of pages shown in the footer.public void onEndPage(com.itextpdf.text.pdf.PdfWriter writer,
com.itextpdf.text.Document document)
onEndPage in interface com.itextpdf.text.pdf.PdfPageEventonEndPage in class com.itextpdf.text.pdf.PdfPageEventHelperwriter - (PdfWriter) The writer for the document being created.document - (Document) The document being created.