//This function is called after every page is created private void On_AfterRenderPage(object sender, EO.Pdf.PdfPageEventArgs e) { //Set the output area to the top portion of the page. Note //this does not change the output area of the original //conversion from which we are called // EO.Pdf.HtmlToPdf.Options.OutputArea = new RectangleF(0, 0, 8.5f, 1f); // //Render an image and a horizontal line. Note the // //second argument is the PdfPage object // EO.Pdf.HtmlToPdf.ConvertHtml(@" // <img src='http://www.essentialobjects.com/images/logo.gif' > // <br />", // e.Page); }
private void On_AfterRenderPage(object sender, EO.Pdf.PdfPageEventArgs e) { //EO.Pdf.PdfPage page = e.Page; //EO.Pdf.Acm.AcmRender render = new EO.Pdf.Acm.AcmRender(page, 0, new EO.Pdf.Acm.AcmPageLayout(new EO.Pdf.Acm.AcmPadding(0, 0, 0, 0))); ////render.SetDefPageSize(new SizeF(EO.Pdf.PdfPageSizes.A4.Width, EO.Pdf.PdfPageSizes.A4.Height)); //EO.Pdf.Acm.AcmBlock footer = new EO.Pdf.Acm.AcmBlock(new EO.Pdf.Acm.AcmText("")); //footer.Style.Border.Top = new EO.Pdf.Acm.AcmLineInfo(EO.Pdf.Acm.AcmLineStyle.Solid, Color.LightGray, 0.01f); //footer.Style.Top = 10.4f; ////footer.Style.FontName = "Arial"; //footer.Style.FontSize = 10f; //footer.Style.HorizontalAlign = EO.Pdf.Acm.AcmHorizontalAlign.Right; //footer.Style.BackgroundColor = Color.Blue; //footer.Style.ForegroundColor = Color.White; //render.Render(footer); }