PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue May 23, 2017 6:51 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed May 08, 2013 2:59 pm 
Offline

Joined: Wed May 08, 2013 10:56 am
Posts: 17
Currently it is only possible to set DifferentFirstPageHeaderFooter. It's a fairly common scenario to not repeat the first page header but *do* repeat the footer.

The only workaround currently is to add our footer twice:

public static void AddFooter(Section section)
{
var footer = section.Footers.FirstPage.AddParagraph();
footer.AddText("Test");

section.Footers.Primary.Add(footer.Clone());
}


Top
 Profile  
Reply with quote  
PostPosted: Wed May 08, 2013 3:34 pm 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2640
Location: Cologne, Germany
IMHO it's not that common and I think it's fine as it is (it's just a "Clone()" call in your code).
And we don't want to break existing code.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group