ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Avoid overlapping of content and footer while generating PDF using C#<p>As you have sets Footer by setting ScaleToFit and SetAbsolutePosition so it will always come in last either there will be any content or not.<br /> If content is reached to the end of page it will always override to the jpg1 part as it already sets by ScaleToFit and SetAbsolutePosition at the end of page. </p> <blockquote><cite>chetan says:</cite> <pre>jpg1.ScaleToFit(830, 160);</pre> </blockquote> <p>&nbsp;</p> <blockquote><cite>chetan says:</cite> <pre>jpg1.SetAbsolutePosition(45, 2);</pre> </blockquote> <p>&nbsp;1) If you need to add signature in the last when the pdf content get end just add the pdfDocument.add(jpg1) in last after htmlparser.parse(srHtmlText) also comment the both above line which sets ScaleToFit and SetAbsolutePosition of jpg1.</p> <p><br />2) Or if you need sets Header and footer in each page the refer the below link for your reference.</p> <h1 class="header"><a class="title f16" href="http://www.aspforums.net/Threads/183139/Add-Header-and-Footer-to-PDF-using-iTextSharp-C/">Add Header and Footer to PDF using iTextSharp C#</a></h1>https://www.aspforums.net:443/Threads/148591/Avoid-overlapping-of-content-and-footer-while-generating-PDF-using-C/https://www.aspforums.net:443/Threads/148591/Avoid-overlapping-of-content-and-footer-while-generating-PDF-using-C/Sat, 03 Feb 2018 03:03:52 GMT