View previous topic :: View next topic |
Author |
Message |
byoung
Joined: 04 Dec 2008 Posts: 2
|
Posted: Thu Dec 04, 2008 4:33 pm Post subject: MigraDoc Page Border |
|
|
I am trying to create a certificate document using MigraDoc, and would like to be able to put a border around the page.
I have been unable to find a way in MigraDoc to draw a black border around the margins of a page, does anyone know of some way to do this?
Thanks,
Ben |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Thomas Hoevel
![](http://www.pdfsharp.de/PDFsharp/images/stories/samples/PDFs/PDFsharplogo.gif)
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Mon Dec 08, 2008 9:13 am Post subject: |
|
|
I'd use a TextFrame for the absolute position of the frame.
Set the LineFormat member of the TextFrame according to your needs.
Absolute Position:
Code: | tf.RelativeHorizontal = RelativeHorizontal.Page;
tf.RelativeVertical = RelativeVertical.Page;
|
_________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
byoung
Joined: 04 Dec 2008 Posts: 2
|
Posted: Mon Dec 08, 2008 5:16 pm Post subject: |
|
|
Thanks Thomas, this is exactly what I needed!
Ben |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|