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);
        }
コード例 #2
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);
 }