C# Class PdfRpt.FooterTemplates.DefaultFooterProvider

A helper class/sample which demonstrates how to implement the IPdfRptCustomFooter to produce the pdfDoc's footer
Inheritance: IPageFooter
Datei anzeigen Open project: VahidN/PdfReport Class Usage Examples

Public Methods

Method Description
ClosingDocument ( PdfWriter writer, Document document, IList columnCellsSummaryData ) : void

Fires before closing the document

DefaultFooterProvider ( IPdfFont pdfRptFont, string printDate, PdfRunDirection direction ) : System

Our DefaultFooter writes current date and page numbers at the bottom of the pages.

DocumentOpened ( PdfWriter writer, IList columnCellsSummaryData ) : void

Fires when the document is opened.

PageFinished ( PdfWriter writer, Document document, IList columnCellsSummaryData ) : void

Fires when a page is finished, just before being written to the document.

Private Methods

Method Description
addPrintDate ( Rectangle pageSize, string printTime ) : void
addTotalPageNumebersTemplate ( PdfWriter writer, Document document ) : Rectangle
initTemplate ( PdfWriter writer ) : void
setFinalPageNumber ( PdfWriter writer ) : void

Method Details

ClosingDocument() public method

Fires before closing the document
public ClosingDocument ( PdfWriter writer, Document document, IList columnCellsSummaryData ) : void
writer iTextSharp.text.pdf.PdfWriter PdfWriter
document iTextSharp.text.Document PDF Document
columnCellsSummaryData IList List of all rows summaries data
return void

DefaultFooterProvider() public method

Our DefaultFooter writes current date and page numbers at the bottom of the pages.
public DefaultFooterProvider ( IPdfFont pdfRptFont, string printDate, PdfRunDirection direction ) : System
pdfRptFont IPdfFont Selected font
printDate string Current date
direction PdfRunDirection rtl or ltr
return System

DocumentOpened() public method

Fires when the document is opened.
public DocumentOpened ( PdfWriter writer, IList columnCellsSummaryData ) : void
writer iTextSharp.text.pdf.PdfWriter PdfWriter
columnCellsSummaryData IList List of all rows summaries data
return void

PageFinished() public method

Fires when a page is finished, just before being written to the document.
public PageFinished ( PdfWriter writer, Document document, IList columnCellsSummaryData ) : void
writer iTextSharp.text.pdf.PdfWriter PdfWriter
document iTextSharp.text.Document PDF Document
columnCellsSummaryData IList List of all rows summaries data
return void