AD
Administrator
Syncfusion Team
November 28, 2007 07:31 AM UTC
Hi Kevin,
Thank you for your interest in Syncfusion products.
If you want to draw the Footer text without being obstructed by the body text of the PDF, then you can set the PDF Page Width as Footer's width.
Here is the code snippet.
[C#]
// Size
RectangleF rect = new RectangleF(0, 0, doc.Pages[0].GetClientSize().Width, 50);
//Create a page template
PdfPageTemplateElement footer = new PdfPageTemplateElement(rect);
footer.Graphics.DrawString(footerText, font, brush, new RectangleF(0, 18, footer.Width, footer.Height));
Pdfdoc.Template.Bottom = footer;
Please refer the sample that shipped with Essential studio in the below location.
..\5.2.0.25\Web\pdf.web\Samples\2.0\PageElements\HeaderFooter
Please let us know if this helps you.
Regards,
Jaya