PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Insert Paragraph on top of a footer
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1776
Page 1 of 1

Author:  ReinerWolff [ Thu Sep 08, 2011 4:13 pm ]
Post subject:  Insert Paragraph on top of a footer

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

Author:  Thomas Hoevel [ Mon Sep 12, 2011 7:59 am ]
Post subject:  Re: Insert Paragraph on top of a footer

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/