We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PDFLogicDocument footer

Thread ID:





50860 Oct 20,2006 05:34 PM UTC Oct 22,2006 08:30 AM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
Asked On October 20, 2006 05:34 PM UTC

I am using the following code to try and add a footer to the page but it isn't displaying anything. How should this be done instead?

section = pdfDoc.AddSection();
paragraph = section.HeadersFooters.Footer.AddParagraph();
paragraph.AppendText("test footer");



Dhivya K [Syncfusion]
Replied On October 22, 2006 08:30 AM UTC

Hi Jeff,

I was able to reproduce the issue in your code. You need to add the footer distance explicitly in addition to your code to make the footer to display.

Here is a code snippet

//Add a section
IPDFSection section = document.AddSection();

//Set the footer distance
section.PageSetup.FooterDistance = 50f;

//Add the footer
IParagraph Footerpara=section.HeadersFooters.Footer.AddParagraph();

//Append the text.
Footerpara.AppendText("PageFooter").CharacterFormat.FontSize =20;

Here is a sample for your reference

Please take a look into it and let me know if you have any other queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon