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.
Unfortunately, activation email could not send to your email. Please try again.

PDFLogicDocument footer

Thread ID:

Created:

Updated:

Platform:

Replies:

50860 Oct 20,2006 01:34 PM Oct 22,2006 04:30 AM ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Jeff
Asked On October 20, 2006 01:34 PM

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");

Thanks,

Jeff

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

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
DLSHeaderFooters.zip


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

Regards,
Dhivya.

CONFIRMATION

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.

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.

;