PdfRpt.Core.PdfTable.PageEvents.OnStartPage C# (CSharp) Method

OnStartPage() public method

Fires when a page is initialized.
public OnStartPage ( PdfWriter writer, Document document ) : void
writer iTextSharp.text.pdf.PdfWriter PdfWriter
document iTextSharp.text.Document PDF Document
return void
        public override void OnStartPage(PdfWriter writer, Document document)
        {
            base.OnStartPage(writer, document);

            if (!shouldSkipHeader(writer, document))
            {
                _headerFooterManager.AddHeader(writer, document);
            }

            _backgroundImageTemplate.ReserveBackgroundImageSpace(writer);
        }