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

Different footer on each page

Thread ID:





99891 Jun 16,2011 11:29 PM UTC Jun 21,2011 11:20 AM UTC Silverlight 3
Tags: PDF
Kevin Dockx
Asked On June 16, 2011 11:29 PM UTC


I'm trying to create a PDF in Silverlight with a different footer depending on the page number: first footer should contain an image + page number, footer on other pages just text + page number.

We've already got the code for page numbers up & running, but we don't seem to be able to change the footer depending on the page number we're on. How can this be done?

Suresh M [Syncfusion]
Replied On June 17, 2011 12:11 PM UTC

Hi Kevin

Thanks for using Syncfusion products.

You can create sections in the PDF document using Syncfusion.Pdf.PdfSection class and add different header and footer to the pages in those sections.

Please refer the following link for the sample.


Please try this and let us know if you have any queries.

Suresh M

Kevin Dockx
Replied On June 17, 2011 02:18 PM UTC


thank you for the fast reply. However

- this is a Windows Forms example, we're using the Silverlight version.

- in the example, you're using 2 sections with their own footer: one with one page, the other with multiple pages. But in the case we're trying to solve, we have a grid with data which starts on the first page, and runs through a variable number of pages (depending on the amount of data). If I understand this correctly, I cannot let that grid (table) run across different sections? So I'm afraid we're still stuck... Is there a solution for this problem? One variable length table, running across pages & starting on the first page, where the first page should contain footer A and all the other pages should contain footer B.

Thanks for your time.

Suresh M [Syncfusion]
Replied On June 21, 2011 11:20 AM UTC

Hi Kevin,

In order to achieve your requirement,

-Add the grid to the PDF document and save it.

-Load the saved document and split it into two documents.

-Add an extra page to the second document so as to maintain the page sequence.

-Add desired footer to the individual documents.

-Create a new document and import the desired page from the two documents.

Please download the sample from the link below.


Please let us know if you have any queries.

Suresh M


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