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

Differences between code, documentation

Thread ID:

Created:

Updated:

Platform:

Replies:

47305 Aug 2,2006 11:56 AM UTC Aug 7,2006 02:20 PM UTC WinForms 5
loading
Tags: PDF
Administrator [Syncfusion]
Asked On August 2, 2006 11:56 AM UTC

On your own site at http://www2.syncfusion.com/library/pdfbase/HeadersAndFooters.html , I''m finding some issues with trying to have a different first page footer for a PDFLogicDocument.

1. IPDFSections don''t seem to have DifferentFirstPage member
2. The call to Add a paragraph should be HeadersFooters.FirstPageFooter.AddParagraph();
3. Nothing I seem to do will display a footer for me on the first page.

I need something so that I can have a footer on all my pages in the document (pages that may have multiple sections on them) as well as a different footer for the first page.

Dhivya K [Syncfusion]
Replied On August 2, 2006 03:23 PM UTC

Hi Scott,
I was able to reproduce the issue. We are currently working on this. I will send you an update regarding this as soon as possible.
Regards
Dhivya.K

Administrator [Syncfusion]
Replied On August 2, 2006 06:58 PM UTC

Please do. This is another critical feature for us and so we''ll be waiting.

Bhagya T [Syncfusion]
Replied On August 4, 2006 12:57 PM UTC

Hi Scott,
Sorry for the confusion. This is not an issue; here is the sample code for doing it.

1.Use the following code for setting DifferentFirstPage member:

section.PageSetup.DifferentFirstPage = true;

2.Currently, the distance of the footer should be explicitly set in order to get the footer displayed. Use the following code to set the width of the footer:

section.PageSetup.FooterDistance = 50f;

Here is a sample for your reference:
SectionBreak.zip


Please take a look and let me know if you have any other questions.

Thanks,
Bhagya.

Administrator [Syncfusion]
Replied On August 4, 2006 01:37 PM UTC

Does this work for only the first section on a given page? Even if I change "section" to "secondSection" in both the Header / Footer references and FooterDistance lines (moving it later in the code so that it compiles), I don''t see a footer in the resulting PDF.

Regardless we can make this code work for us, just curious. Thank you very much.

Bhagya T [Syncfusion]
Replied On August 7, 2006 02:20 PM UTC

Hi Scott,
Thank you for your interest in Essential PDF.

1.When a different header and footer is to be set for the first page alone, the first section in the page is used for setting them.
2.For subsequent pages, the header and footer should be set for last section of the page.

Thanks,
Bhagya.

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.

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

;