| dinamica.PDFPageEvents
PDFPageEvents | public class PDFPageEvents extends PdfPageEventHelper (Code) | | PDF reports utility class.
Generic class to intercept IText page events and
print custom footer text and Page X of Y using IText
template object.
Footer looks like:
[FooterText - DateTime] ...... [X of Y]
Creation date: 2006-12-28
(c) 2006 Martin Cordova
This code is released under the LGPL license
Dinamica Framework - http://www.martincordova.com
author: Martin Cordova (martin.cordova@gmail.com) |
Method Summary | |
public void | onCloseDocument(PdfWriter writer, Document document) | public void | onEndPage(PdfWriter writer, Document document) |
PDFPageEvents | public PDFPageEvents(String footerLeft, String pageXofY, PdfTemplate tpl, BaseFont bf, PdfContentByte cb, String reportDateTime) throws Throwable(Code) | | Initializes object with required parameters
Parameters: footerLeft - Text for letf-side footer Parameters: pageXofY - Text between "X" and "Y" numbers, might be " of " or " de ", according to language Parameters: tpl - Template used to print "X of Y" right-side footer Parameters: bf - Base font Parameters: cb - Content byte Parameters: reportDateTime - Formatted date/time for left-side footer throws: Throwable - |
onCloseDocument | public void onCloseDocument(PdfWriter writer, Document document)(Code) | | Print value on empty template (total number of pages), this
will update footer on every page where the template was inserted
|
onEndPage | public void onEndPage(PdfWriter writer, Document document)(Code) | | Create custom-made footer on every page, this
will place the empty template on every page
|
|
|