PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed May 01, 2024 7:38 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: MigraDoc Page Border
PostPosted: Thu Dec 04, 2008 4:33 pm 
Offline

Joined: Thu Dec 04, 2008 4:27 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 08, 2008 9:13 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 08, 2008 5:16 pm 
Offline

Joined: Thu Dec 04, 2008 4:27 pm
Posts: 2
Thanks Thomas, this is exactly what I needed!

Ben


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 60 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