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

MigraDoc Page Border
https://forum.pdfsharp.net/viewtopic.php?f=2&t=562
Page 1 of 1

Author:  byoung [ 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

Author:  Thomas Hoevel [ 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;

Author:  byoung [ Mon Dec 08, 2008 5:16 pm ]
Post subject: 

Thanks Thomas, this is exactly what I needed!

Ben

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