Defines dynamic footer of the pages by using iTextSharp's HTML to PDF capabilities (XmlWorker class).
예제 #1
0
        /// <summary>
        /// Using the predefined XHtmlFooterProvider class.
        /// </summary>
        /// <param name="htmlFooterProviderBuilder">Footer Provider Builder</param>
        public void XHtmlFooter(Action <XHtmlFooterProviderBuilder> htmlFooterProviderBuilder)
        {
            var builder = new XHtmlFooterProviderBuilder();

            htmlFooterProviderBuilder(builder);
            _pdfReport.DataBuilder.SetFooter(builder.HtmlFooterProvider);
        }
 /// <summary>
 /// Using the predefined XHtmlFooterProvider class.
 /// </summary>
 /// <param name="htmlFooterProviderBuilder">Footer Provider Builder</param>        
 public void XHtmlFooter(Action<XHtmlFooterProviderBuilder> htmlFooterProviderBuilder)
 {
     var builder = new XHtmlFooterProviderBuilder();
     htmlFooterProviderBuilder(builder);
     _pdfReport.DataBuilder.SetFooter(builder.HtmlFooterProvider);
 }