PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 4:09 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



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
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
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 2 guests


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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group