Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MigraDoc Footer Position

I am trying to place an image as the footer of each page, I can move the footer closer to the bottom of the page using:

doc.DefaultPageSetup.FooterDistance = "0cm"

But I cannot seem to find a way to allow a shorter distance from the sides of the page. Is there a way to do this or some kind of "trick" to achieve this.

The only way I can find is by removing the page setup margins, but I need them to hold the page together.

Does anyone know a way around this or some setting I am missing?

like image 248
Ruddy Avatar asked Oct 22 '13 08:10

Ruddy


1 Answers

You can add a TextFrame to the footer (AddTextFrame()) and assign an absolute position to this textframe.

See also:
http://forum.pdfsharp.net/viewtopic.php?p=6928#p6928

like image 138
I liked the old Stack Overflow Avatar answered Nov 10 '22 06:11

I liked the old Stack Overflow