PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Jul 19, 2024 3:28 pm

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: Thu Sep 08, 2011 4:13 pm 
Offline

Joined: Wed Apr 13, 2011 6:39 pm
Posts: 21
Hi,

I have created a footer with a procedure like this:
Friend Sub CreateFooter(ByVal sec As Section)
Dim Footer = sec.Footers.Primary
'fill with a table and strings
sec.Footers.EvenPage = Footer.Clone
End Sub

So I have this footer on every page, as I wanted.

Now I have to add a paragraph to the footer that is shown before the table and only comes on the first page.

How can I insert a paragraph on a specific position in the footer-section?

Thanks for help in advance
Greetings from Kiel
Reiner Wolff


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 12, 2011 7:59 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Hi!

You can add a TextFrame to the footer (or header) and place this at an absolute position.

I'm not sure if I understand the question correctly.
You can write a sub routine that creates the footer and pass a boolean that indicates "firstPage". Instead of calling "Clone()" you'd call the code twice. Table will be lower on the first page because there is an additional paragraph.
If you want to avoid that: filled paragraph on first page, empty paragraph on following pages - or TextFrame.

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